完全匹配的单词Solr [英] Exact word match Solr
本文介绍了完全匹配的单词Solr的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想要查询的准确结果.
I want to the exact results for my query.
例如当我搜索纽约"时,它并没有为我提供有关纽约的确切结果 但这也给了我这样的结果:
For e.g. when I search "New york" , then it doesn't give me exact results about New York But it also gives me results like:
纽约"
新德里"
以及其他从新"开始的城市
And other cities starting from "New"
那我怎样才能只获得纽约"的搜索结果?
So how can I get only results for "New York"?
推荐答案
短语查询应该可以完成这项工作.只需在查询词两边加上引号即可.
Phrase query should do the job. Just put quotes around your query terms.
这篇关于完全匹配的单词Solr的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文