How to make solr synonyms work

前端 未结 3 489
一生所求
一生所求 2021-02-07 21:36

I\'m trying to set up some basic synonyms in Solr. The one I\'ve been working on is:

us, usa, united states

My understanding is that adding that to the synonym f

3条回答
  •  遇见更好的自我
    2021-02-07 22:24

    To complete the answer from a newer Solr perspective I would like to add one thing when it comes to synonyms. Recent versions of Solr properly handle multi-word synonyms during query and index time.

    To use the new synonyms implementation you would have to use a different filter, for example:

    
    

    Also if you are using them during index time, put the following filter at the end of your analysis chain definition:

    
    

    Hopefully, someone will find that useful :)

提交回复
热议问题