I'm not quite sure what you're trying to do with KeywordTokenizerFactory in
your SynonymFilter definition, but if I use the defaults, then the
all-phrase form works just fine.

So the question is "what problem are you trying to address by using
KeywordTokenizerFactory?"

Best
Erick

On Sun, Feb 5, 2012 at 8:21 AM, O. Klein <kl...@octoweb.nl> wrote:
> Your query analyser will tokenize "simple sirup" into "simple" and "sirup"
> and wont match on "simple syrup" in the synonyms.txt
>
> So you have to change the query analyzer into KeywordTokenizerFactory as
> well.
>
> It might be idea to make a field for synonyms only with this tokenizer and
> another field to search on and use dismax. Never tried this though.
>
> --
> View this message in context: 
> http://lucene.472066.n3.nabble.com/Multi-word-synonyms-tp3716292p3717215.html
> Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to