【发布时间】:2017-08-14 08:08:47
【问题描述】:
我有 Solr 6.2.0 运行模糊搜索,它返回突出显示的结果,我真的不明白为什么:
- 查询:oa
- 亮点:Awad Mohamed Ahmed Ibn OAF
为什么还要强调 Awad 和 Mohamed?不使用模糊搜索时,突出显示是正确的(仅 OAF)。 具有相同查询的其他一些亮点:
- Daltransgaz、OAO
- VO Tekhnopromeksport、OAO
查询配置:
Word Percentage: 60
Phrase Percentage: 60
Score Algorithm: QUERY WORD
Alogrithm: Damerau Levensthein
请求中的查询参数
"params":{
"debug":"results",
"hl":"on",
"group.cache.percent":"100",
"indent":"on",
"fl":"*,score",
"start":"0",
"fq":"{!percentagefilter p=0.6}",
"rows":"48",
"group.ngroups":"true",
"hl.simple.pre":"<span class=\"highlight\">",
"q":"{!percentage f=nam_comp_name t=QUERY_SIDE pw=0.6 ic=1 icp=0.59 alg=DA_LV}oa~",
"hl.simple.post":"</span>",
"group.truncate":"true",
"requestId":"4",
"hl.fl":"nam_comp_name",
"wt":"json",
"group.field":"ent_id",
"group":"true"}},
【问题讨论】:
-
请在您的问题中添加您正在使用的模糊搜索 Solr 配置。
-
@freedev:我为请求添加了参数并启用了调试。但是他们只有关于每个模糊搜索的分数的信息,而不是突出显示的信息。我也是 Solr 的新手
标签: solr highlight fuzzy-search