You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by "Zoran | Bax-shop.nl" <zo...@bax-shop.nl> on 2011/12/05 17:08:54 UTC
synonyms with dashes '-'
Hello,
When i add a synonym to synonyms.txt it works fine. For example:
foo => bar (when searching for foo, also bar gets found)
But this won't work (asume bar-bar is somewhere indexed) :
foo => bar-bar
what should i do to enable the searching of synonyms with dashes in them?
Thank you,
Zoran
Re: synonyms with dashes '-'
Posted by Erick Erickson <er...@gmail.com>.
Details matter. Your analysis chain on the field may well
be the issue.
Look at the terms in the field (admin/schema browser).
Look at &debugQuery=on to see how the query is parsed
Look at the admin/analysis page to see the effects of the analysis chain.
You might review:
http://wiki.apache.org/solr/UsingMailingLists
Best
Erick
On Mon, Dec 5, 2011 at 11:08 AM, Zoran | Bax-shop.nl
<zo...@bax-shop.nl> wrote:
> Hello,
>
> When i add a synonym to synonyms.txt it works fine. For example:
> foo => bar (when searching for foo, also bar gets found)
>
> But this won't work (asume bar-bar is somewhere indexed) :
> foo => bar-bar
>
> what should i do to enable the searching of synonyms with dashes in them?
>
> Thank you,
>
> Zoran
>