lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Markus Jelsma <markus.jel...@openindex.io>
Subject RE: copyField - copy only specific words
Date Fri, 25 Jan 2013 13:17:03 GMT
Hi

Use the KeepWordFilter on the destination field:
http://wiki.apache.org/solr/AnalyzersTokenizersTokenFilters#solr.KeepWordFilterFactory

Cheers
 
 
-----Original message-----
> From:b.riezler@pixel-ink.de <b.riezler@pixel-ink.de>
> Sent: Fri 25-Jan-2013 11:41
> To: solr-user@lucene.apache.org
> Subject: copyField - copy only specific words
> 
> Hi,
> 
> i'd like to copy specific words from the keywords field to another field.
> Cause the data i get is all in one field i'd like to extract the cities (they are fixed,
so i'll know them in advance) and put them in a seperate field.
> 
> Can i generate a whitelist file and tell the copy field to check this file and only copy
matching words to a new field?
> 
> Thanks for your help
> Ben
> 

Mime
View raw message