QueryWrapperFilter
over a TermsQuery
instead@Deprecated public final class TermsFilter extends Filter implements Accountable
Constructor and Description |
---|
TermsFilter(List<Term> terms)
Deprecated.
Creates a new
TermsFilter from the given list. |
TermsFilter(String field,
BytesRef... terms)
Deprecated.
Creates a new
TermsFilter from the given BytesRef array for
a single field. |
TermsFilter(String field,
List<BytesRef> terms)
Deprecated.
Creates a new
TermsFilter from the given BytesRef list for
a single field. |
TermsFilter(Term... terms)
Deprecated.
Creates a new
TermsFilter from the given array. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Deprecated.
|
Collection<Accountable> |
getChildResources()
Deprecated.
|
DocIdSet |
getDocIdSet(LeafReaderContext context,
Bits acceptDocs)
Deprecated.
|
int |
hashCode()
Deprecated.
|
long |
ramBytesUsed()
Deprecated.
|
String |
toString(String defaultField)
Deprecated.
|
createWeight
public TermsFilter(List<Term> terms)
TermsFilter
from the given list. The list
can contain duplicate terms and multiple fields.public TermsFilter(String field, List<BytesRef> terms)
TermsFilter
from the given BytesRef
list for
a single field.public TermsFilter(String field, BytesRef... terms)
TermsFilter
from the given BytesRef
array for
a single field.public TermsFilter(Term... terms)
TermsFilter
from the given array. The array can
contain duplicate terms and multiple fields.public long ramBytesUsed()
ramBytesUsed
in interface Accountable
public Collection<Accountable> getChildResources()
getChildResources
in interface Accountable
public DocIdSet getDocIdSet(LeafReaderContext context, Bits acceptDocs) throws IOException
getDocIdSet
in class Filter
IOException
Copyright © 2000-2015 Apache Software Foundation. All Rights Reserved.