Solr: Multi Word Synonyms : Only first word is highlighting

那年仲夏 提交于 2020-01-04 06:48:26

问题


I am doing index time synonym expansion for multi word synonyms. In my synonyms.txt I have synonyms like (barc=>barc,bhabha atomic research center). But when I am searching for "barc" it is not highlighting "bhabha atomic research center". Only 1st word i.e "bhabha" is highlighting...

Can any one help me???

thanks...


回答1:


For now easiest way to fix this is to set LUCENE_33 instead of LUCENE_40 in solrconfig.xml and reindex. Highlighting will work then as expected.

A patch is now available: https://issues.apache.org/jira/browse/LUCENE-3668



来源:https://stackoverflow.com/questions/8616208/solr-multi-word-synonyms-only-first-word-is-highlighting

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!