lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yonik Seeley" <>
Subject Re: Can you parse the contents of a field to populate other fields?
Date Mon, 05 Nov 2007 21:51:43 GMT
On 11/5/07, Kristen Roth <> wrote:
> I'm wondering if this is possible... I am trying to model a hierarchy of
> facets, and have a field in my xml (Category) that structured like this:
> facet1::facet2::facet3...  At index time, I would like to split this
> field on the :: to populate several other fields I have defined in my
> schema (Category_1, Category_2, Category_3).  Is this possible?  If so,
> what is the best way to do this?

I think a PatternTokenizer might be able to do this...
set up a copyField from Category to all the other category fields, and
then set up a different regex on each field to pull out the right


View raw message