Can someone give me a good explanation on how the Synonym file format works
in Solr? Cause I really don't get it anymore.

If I have the following synonym rule: dog => hound and I search for dog OR
hound I receive the following rules:

dog
hound

If I have the following synonym rule: hound => dog and I search for hound OR
dog I receive the following rules:

dog
hound

So weird, I dont get it what => exactly means. I read the solr docs but I'm
completely confused right now, I'm trying different things for a couple of
hours now and I cannot explain any of the results.

What I would like to accomplish is when a user searches for dog it receives
hound AND dog. If it searches for hound it just receives hound. This works:
hound => dog, hound

Now I receive only Hound when I search for Hound and if I search for Dog I
receive Dog AND Hound



--
View this message in context: 
http://lucene.472066.n3.nabble.com/Explanation-Solr-Synonym-file-format-tp4159710.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to