java.lang.Object | ||
↳ | org.apache.lucene.search.MultiTermQuery.RewriteMethod | |
↳ | org.apache.lucene.search.ScoringRewrite<Q extends org.apache.lucene.search.Query> |
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
CONSTANT_SCORE_BOOLEAN_QUERY_REWRITE | Like SCORING_BOOLEAN_QUERY_REWRITE except
scores are not computed. |
||||||||||
SCORING_BOOLEAN_QUERY_REWRITE | A rewrite method that first translates each term into
SHOULD clause in a
BooleanQuery, and keeps the scores as computed by the
query. |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Add a MultiTermQuery term to the top-level query
| |||||||||||
Return a suitable top-level Query for holding all expanded terms.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.apache.lucene.search.MultiTermQuery.RewriteMethod
| |||||||||||
From class
java.lang.Object
|
Like SCORING_BOOLEAN_QUERY_REWRITE
except
scores are not computed. Instead, each matching
document receives a constant score equal to the
query's boost.
NOTE: This rewrite method will hit BooleanQuery.TooManyClauses
if the number of terms
exceeds getMaxClauseCount()
.
A rewrite method that first translates each term into
SHOULD
clause in a
BooleanQuery, and keeps the scores as computed by the
query. Note that typically such scores are
meaningless to the user, and require non-trivial CPU
to compute, so it's almost always better to use CONSTANT_SCORE_AUTO_REWRITE_DEFAULT
instead.
NOTE: This rewrite method will hit BooleanQuery.TooManyClauses
if the number of terms
exceeds getMaxClauseCount()
.
Add a MultiTermQuery term to the top-level query
IOException |
---|
IOException |
---|
Return a suitable top-level Query for holding all expanded terms.
IOException |
---|