Package org.apache.lucene.search
Class BlendedTermQuery.DisjunctionMaxRewrite
- java.lang.Object
-
- org.apache.lucene.search.BlendedTermQuery.RewriteMethod
-
- org.apache.lucene.search.BlendedTermQuery.DisjunctionMaxRewrite
-
- Enclosing class:
- BlendedTermQuery
public static class BlendedTermQuery.DisjunctionMaxRewrite extends BlendedTermQuery.RewriteMethod
ABlendedTermQuery.RewriteMethod
that creates aDisjunctionMaxQuery
out of the sub queries. ThisBlendedTermQuery.RewriteMethod
is useful when having a good match on a single field is considered better than having average matches on several fields.
-
-
Constructor Summary
Constructors Constructor Description DisjunctionMaxRewrite(float tieBreakerMultiplier)
ThisBlendedTermQuery.RewriteMethod
will createDisjunctionMaxQuery
instances that have the provided tie breaker.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
int
hashCode()
Query
rewrite(Query[] subQueries)
Merge the provided sub queries into a singleQuery
object.
-
-
-
Constructor Detail
-
DisjunctionMaxRewrite
public DisjunctionMaxRewrite(float tieBreakerMultiplier)
ThisBlendedTermQuery.RewriteMethod
will createDisjunctionMaxQuery
instances that have the provided tie breaker.- See Also:
DisjunctionMaxQuery
-
-
Method Detail
-
rewrite
public Query rewrite(Query[] subQueries)
Description copied from class:BlendedTermQuery.RewriteMethod
Merge the provided sub queries into a singleQuery
object.- Specified by:
rewrite
in classBlendedTermQuery.RewriteMethod
-
-