开发者

PhraseQuery: can Lucene skip words from Query (not exact search) if nothing found

开发者 https://www.devze.com 2023-04-06 14:36 出处:网络
Suppose I\'m making request [hibernate-search] lucene phrase. The are 2 docs that satisfy exact phrase, but there are a lot of docs with [hibernate-search] lucene. How should I开发者_运维知识库 constr

Suppose I'm making request [hibernate-search] lucene phrase. The are 2 docs that satisfy exact phrase, but there are a lot of docs with [hibernate-search] lucene. How should I开发者_运维知识库 construct a query to display exact docs first and then docs without single word ([hibernate-search] phrase)?


Just OR them: "my phrase" my phrase.

0

精彩评论

暂无评论...
验证码 换一张
取 消