Solr: Multi Word Synonyms : Only first word is hig

2019-07-20 13:24发布

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条回答
趁早两清
2楼-- · 2019-07-20 14:06

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

查看更多
登录 后发表回答