public abstract class TopTermsRewrite<Q extends Query> extends MultiTermQuery.RewriteMethod
| Constructor and Description |
|---|
TopTermsRewrite(int size)
Create a TopTermsBooleanQueryRewrite for
at most
size terms. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
int |
getSize()
return the maximum priority queue size
|
int |
hashCode() |
Q |
rewrite(IndexReader reader,
MultiTermQuery query) |
public TopTermsRewrite(int size)
size terms.
NOTE: if BooleanQuery.getMaxClauseCount() is smaller than
size, then it will be used instead.
public int getSize()
public final Q rewrite(IndexReader reader, MultiTermQuery query) throws IOException
rewrite in class MultiTermQuery.RewriteMethodIOExceptionCopyright © 2010 - 2020 Adobe. All Rights Reserved