Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我曾尝试为精确的术语匹配创建查询,但现在我正在尝试实现这样的目标。假设有人试图搜索一个名为“Test Solr”的短语,结果应该首先显示具有确切术语“Test Solr”的项目彼此相邻。那么优先级应该是在内容中的任何位置显示同时具有术语“Test”和“Solr”的项目,最后应该显示具有“Test”或“Solr”的内容。有没有人尝试过创建这样的查询?
看看dismax 查询解析器中的Phrase slop,它对查询词接近度高于其他文档的文档进行评分。