PhraseQuery: can Lucene skip words from Query (not exact search) if nothing found
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
.
精彩评论