Re: copyField - copy only specific words

2013-01-25 Thread Alexandre Rafalovitch
Possibly with Shingles before the KeepWord filter to deal with multi-word situations (though I am not sure if KeepWord allows space-separate tokens in the file): http://stackoverflow.com/questions/14479473/ Regards, Alex. Personal blog: http://blog.outerthoughts.com/ LinkedIn: http://www.linke

RE: copyField - copy only specific words

2013-01-25 Thread Markus Jelsma
Hi Use the KeepWordFilter on the destination field: http://wiki.apache.org/solr/AnalyzersTokenizersTokenFilters#solr.KeepWordFilterFactory Cheers -Original message- > From:b.riez...@pixel-ink.de > Sent: Fri 25-Jan-2013 11:41 > To: solr-user@lucene.apache.org > Subject: copyField - co

Re: copyField - copy only specific words

2013-01-25 Thread Tomás Fernández Löbbe
I think the best way will be to pre-process the document (or use a custom UpdateRequestProcessor). Other option, if you'll only use the "cities" field for faceting/sorting/searching (you don't need the stored content) would be to use a regular copyField and use a "KeepWordFilter" for the "cities" f