Multiple keyword files work just fine for me.

one issue you're having is that multi-word keepwords aren't going to
do what you expect. The analysis chains work on _tokens_, and only see
one at a time. Plus (apparently) the input is broken up on whitespace
(the docs aren't entirely clear on this, but can be inferred by "one
per line").

Even if there were multi-word keepwords, it wouldn't work as you
apparently expect. The problem is that the analysis chain first breaks
the input into tokens. So even if a "single" keepword were "a b", and
your input was "a b", by the time it gets to the keepword filter the
context would be lost. So the filter would see just "a" and say "nope
it doesn't match 'a b', throw it out". Ditto with "b".

Since keepwords are apparently split on whitespace though, in the
example above both would be kept. The keepword list is "a" and "b" so
in the above example both match and are kept.

Best,
Erkck

On Tue, Jul 18, 2017 at 9:49 AM, tstusr <ulfrhe...@gmail.com> wrote:
> Well, I have no idea why that images display as did.
>
> The correct order is:
>
> Field chain analyzer.
> <http://lucene.472066.n3.nabble.com/file/n4346602/1.png>
>
> KWF-genus file
> <http://lucene.472066.n3.nabble.com/file/n4346602/3.png>
>
> Test output.
> <http://lucene.472066.n3.nabble.com/file/n4346602/2.png>
>
> Sorry for the mistake
>
>
>
> --
> View this message in context: 
> http://lucene.472066.n3.nabble.com/Copy-field-a-source-of-copy-field-tp4346425p4346602.html
> Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to