lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kristen Roth" <kristen.r...@molecular.com>
Subject RE: Can you parse the contents of a field to populate other fields?
Date Tue, 06 Nov 2007 19:40:21 GMT
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 Kristen.Roth@molecular.com

Molecular
343 Arsenal Street
Watertown, MA 02472
www.Molecular.com

Linked by Isobar 


-----Original Message-----
From: yseeley@gmail.com [mailto:yseeley@gmail.com] 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 <kristen.roth@molecular.com> 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

Mime
View raw message