public final class TermsFilter extends Filter
| Constructor and Description |
|---|
TermsFilter(List<Term> terms)
Creates a new
TermsFilter from the given list. |
TermsFilter(String field,
BytesRef... terms)
Creates a new
TermsFilter from the given BytesRef array for
a single field. |
TermsFilter(String field,
List<BytesRef> terms)
Creates a new
TermsFilter from the given BytesRef list for
a single field. |
TermsFilter(Term... terms)
Creates a new
TermsFilter from the given array. |
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 DocIdSet getDocIdSet(AtomicReaderContext context, Bits acceptDocs) throws IOException
getDocIdSet in class FilterIOExceptionCopyright © 2000-2014 Apache Software Foundation. All Rights Reserved.