TermInSetQuery@Deprecated public class TermsQuery extends Query implements Accountable
| Constructor and Description |
|---|
TermsQuery(Collection<Term> terms)
Deprecated.
Creates a new
TermsQuery from the given collection. |
TermsQuery(String field,
BytesRef... terms)
Deprecated.
Creates a new
TermsQuery from the given BytesRef array for
a single field. |
TermsQuery(String field,
Collection<BytesRef> terms)
Deprecated.
Creates a new
TermsQuery from the given collection for
a single field. |
TermsQuery(Term... terms)
Deprecated.
Creates a new
TermsQuery from the given array. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj)
Deprecated.
|
int |
hashCode()
Deprecated.
|
long |
ramBytesUsed()
Deprecated.
|
Query |
rewrite(IndexReader reader)
Deprecated.
|
String |
toString(String field)
Deprecated.
|
classHash, createWeight, sameClassAs, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetChildResourcespublic TermsQuery(Collection<Term> terms)
TermsQuery from the given collection. It
can contain duplicate terms and multiple fields.public TermsQuery(String field, Collection<BytesRef> terms)
TermsQuery from the given collection for
a single field. It can contain duplicate terms.public TermsQuery(String field, BytesRef... terms)
TermsQuery from the given BytesRef array for
a single field.public TermsQuery(Term... terms)
TermsQuery from the given array. The array can
contain duplicate terms and multiple fields.public Query rewrite(IndexReader reader) throws IOException
rewrite in class QueryIOExceptionpublic long ramBytesUsed()
ramBytesUsed in interface AccountableCopyright © 2000-2017 Apache Software Foundation. All Rights Reserved.