【发布时间】:2015-06-18 07:30:05
【问题描述】:
我的模式“fullText”中有一个字段是“text_en”类型,并且是多值的。术语“测试”位于一个文档的全文字段中。
在 solr 中,当我尝试使用“test”一词进行搜索时,使用最小距离为 1 的标准 lucene 解析器,它会返回文档。我正在使用的查询是:
http://localhost:8983/solr/simple/select?q=fullText:test~1&wt=xml&indent=true
但我正在使用 dismax 做同样的事情,并且它没有返回文档。我尝试过的查询是:
http://localhost:8983/solr/simple/select?q=test&wt=xml&indent=true&defType=dismax&qf=fullText~1
http://localhost:8983/solr/simple/select?q=test~1&wt=xml&indent=true&defType=dismax&qf=fullText
【问题讨论】: