public static class BlendedTermQuery.DisjunctionMaxRewrite extends BlendedTermQuery.RewriteMethod
BlendedTermQuery.RewriteMethod
that creates a DisjunctionMaxQuery
out
of the sub queries. This BlendedTermQuery.RewriteMethod
is useful when having a
good match on a single field is considered better than having average
matches on several fields.Constructor and Description |
---|
DisjunctionMaxRewrite(float tieBreakerMultiplier)
This
BlendedTermQuery.RewriteMethod will create DisjunctionMaxQuery
instances that have the provided tie breaker. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
int |
hashCode() |
Query |
rewrite(Query[] subQueries)
Merge the provided sub queries into a single
Query object. |
public DisjunctionMaxRewrite(float tieBreakerMultiplier)
BlendedTermQuery.RewriteMethod
will create DisjunctionMaxQuery
instances that have the provided tie breaker.DisjunctionMaxQuery
public Query rewrite(Query[] subQueries)
BlendedTermQuery.RewriteMethod
Query
object.rewrite
in class BlendedTermQuery.RewriteMethod
Copyright © 2000-2016 Apache Software Foundation. All Rights Reserved.