简体   繁体   English

SOLR \\ Boost短语文档

[英]SOLR \ Boost phrases docs

Let's say I wanna search docs with Term1 Term2 Term3 How can I boost those docs that these terms are closer? 假设我想使用Term1 Term2 Term3搜索文档,如何提升这些术语更接近的文档? only proximity is to tight for me as I want to get docs with only term1 and term2 for example... 对我来说,只有接近对我来说太紧了,例如,我想只获取term1和term2的文档...

I know there is SOLR param that take all the query and wrap it in some phrase boost? 我知道有SOLR参数可以接受所有查询并将其包装为某些词组增强吗?

You can use a bool Query which can contain a combination of queries which may include exact match, partial match or proximity match. 您可以使用布尔查询,它可以包含查询的组合,其中可能包括完全匹配,部分匹配或接近匹配。 For different types of queries take a look at this . 对于不同类型的查询,请查看this

Also, please go through this . 另外,请检查 This is a very good article about Proximity matching in ES. 这是一篇有关ES中邻近匹配的非常好的文章。

Thanks 谢谢

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM