【发布时间】:2012-10-30 21:45:21
【问题描述】:
schema.xml(与我的问题相关的部分):
<field name="question" stored="true" type="text" multiValued="false" indexed="true"/>
<field name="question_highlight" stored="true" type="string" multiValued="false" indexed="true"/>
</fields>
<!-- AND -->
<copyField source="question" dest="question_highlight" />
注意事项:我为 fieldType: text
启用了停用词当我索引一个文档时,我传递了问题字段 现在当我尝试使用此查询进行搜索时
select?q=question:have fever&hl=true&hl.fl=question_highlight
知道单词 have 包含在我的停用词列表中,因此单词 have 不会在结果中突出显示 我怎样才能解决这个问题?我需要突出显示停用词,我检查了这篇帖子 Solr highlighting without stop-words for phrases? 这就是为什么我将 question_highlight 作为字符串但它仍然不起作用
【问题讨论】:
标签: solr highlighting stop-words