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" field. However, with this approach it will be difficult to handle
multi-word cities like "New York" or "Buenos Aires".

Tomás


On Fri, Jan 25, 2013 at 7:33 AM, b.riez...@pixel-ink.de <
b.riez...@pixel-ink.de> wrote:

> 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
>

Reply via email to