问题描述
我正在为多词同义词进行索引时间同义词扩展.在我的onymous.txt中,我有类似(barc => barc,bhabha原子研究中心)的同义词.但是,当我搜索"barc"时,并没有强调"bhabha原子研究中心".仅第一个单词(即"bhabha")突出显示...
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???
谢谢...
推荐答案
现在最简单的解决方法是在solrconfig.xml中设置LUCENE_33而不是LUCENE_40并重新索引.突出显示将按预期工作.
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.
现已提供补丁程序: https://issues.apache.org/jira/浏览/LUCENE-3668
这篇关于Solr:多词同义词:仅第一个单词突出显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!