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.DisjunctionMaxQuerypublic Query rewrite(Query[] subQueries)
BlendedTermQuery.RewriteMethodQuery object.rewrite in class BlendedTermQuery.RewriteMethodCopyright © 2000-2017 Apache Software Foundation. All Rights Reserved.