我在Solr中使用词干和语音。搜索效果很好,它可以搜索所需的文档并给出结果,但突出显示在词干和拼音的情况下不起作用。它会在搜索中提供我所需的词干和拼音单词。 它突出显示“运行”之类的单词,但未运行,但是会搜索包含“运行”一词的文档
请提出建议
For this i have three fields -
1.Content (stored = true)
2.Content_Stemming (stored = false)
3.Content_phonetic (stored = false)
我的网址看起来像-
http://example.com/solr/dev/select?q=content_stemming:run&hl=on&hl.simple.pre=%3Cem%3E
&hl.simple.post=%3C/em%3E&hl.field=content
Solr schema.xml
<field name="content" type="text_general" indexed="true" stored="true" multiValued="true"/>
<field name="content_phonetic" type="gaits_phonetic" indexed="true" stored="false" multiValued="true"/>
<field name="content_stemming" type="gaits_stemming" indexed="true" stored="false" multiValued="true"/></w:t>
<filter class="solr.KeywordRepeatFilterFactory" />
<filter class="solr.SnowballPorterFilterFactory"/>
<filter class="solr.RemoveDuplicatesTokenFilterFactory"/>