我正在尝试在 Solr 中突出显示结果,到目前为止,到处调整都是很困难的...我现在主要关心的是我让突出显示短语工作正常,但如果我搜索类似的内容
“巴西世界杯:意外的挑战”
突出显示字段将返回:
“巴西世界杯:意外的挑战”
我认为这可能是由于停用词造成的(顺便说一句,我的字段是“textgen”类型)。是否有某种参数可以在查询中运行,该参数会按预期返回突出显示的整个字段?或者我是否必须删除文本生成中的停用词过滤器?
I am trying to highlight results in Solr and up until now, it's been a struggle of tweaking here and there... My main concern now is that i got the highlighting phrases thing working, but if i search for something like
"The World Cup At Brazil: An Unexpected Challenge"
The highlighting field will return:
"World Cup Brazil: Unexpected Challenge"
I think this might be due to the stop words (my field is a 'textgen' type, btw). Is there some kind of parameter to run in the query that would return the entire field highlighted as expected? Or will i have to remove the stopwords filter in the textgen?
发布评论
评论(1)
这肯定是由于停用词造成的。考虑声明一个新的字段类型,例如 textgen,但在其索引或查询分析器中没有以下内容:
This is definitely due to stopwords. Consider declaring a new fieldtype like textgen, but without the following in it's index or query analyzers: