【问题标题】:Solr- Reason behind the result of Fuzzy Search highlightingSolr-模糊搜索突出显示结果背后的原因
【发布时间】:2017-08-14 08:08:47
【问题描述】:

我有 Solr 6.2.0 运行模糊搜索,它返回突出显示的结果,我真的不明白为什么:

  • 查询:oa
  • 亮点:Awad Mohamed Ahmed Ibn OAF

为什么还要强调 Awad 和 Mohamed?不使用模糊搜索时,突出显示是正确的(仅 OAF)。 具有相同查询的其他一些亮点:

  1. DaltransgazOAO
  2. VO TekhnopromeksportOAO

查询配置:

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


【解决方案1】:

我想您正在将 Phonetic Matching(或 Soundex)与 Damerau-Levensthein 距离算法一起使用。

这可以解释为什么 oa 搜索也会匹配 Awad Mohamed。

【讨论】:

  • 如果是这样,为什么它会返回突出显示的整个 Awad,而不仅仅是 wa?
  • 不确定,但我认为突出显示将在单词(整个单词)上执行,而不是它的一部分。
猜你喜欢
  • 1970-01-01
  • 2018-11-03
  • 2011-05-10
  • 1970-01-01
  • 2017-11-02
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多