Yonik - thanks so much for your help! Just to clarify; where should the regex go for each field?
Thanks! Kristen .................................... Kristen Roth Associate Software Engineer P 617.218.6661 F 617.218.6861 E [EMAIL PROTECTED] Molecular 343 Arsenal Street Watertown, MA 02472 www.Molecular.com Linked by Isobar -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Yonik Seeley Sent: Monday, November 05, 2007 4:52 PM To: solr-user@lucene.apache.org Subject: Re: Can you parse the contents of a field to populate other fields? On 11/5/07, Kristen Roth <[EMAIL PROTECTED]> 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 part. -Yonik