MultiTermQueryConstantScoreWrapper
instead@Deprecated public class MultiTermQueryWrapperFilter<Q extends MultiTermQuery> extends Filter
MultiTermQuery
, that exposes its
functionality as a Filter
.
MultiTermQueryWrapperFilter
is not designed to
be used by itself. Normally you subclass it to provide a Filter
counterpart for a MultiTermQuery
subclass.
For example, TermRangeFilter
and PrefixFilter
extend
MultiTermQueryWrapperFilter
.
Modifier | Constructor and Description |
---|---|
protected |
MultiTermQueryWrapperFilter(Q query)
Deprecated.
Wrap a
MultiTermQuery as a Filter. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o)
Deprecated.
|
DocIdSet |
getDocIdSet(LeafReaderContext context,
Bits acceptDocs)
Deprecated.
Returns a DocIdSet with documents that should be permitted in search
results.
|
String |
getField()
Deprecated.
Returns the field name for this query
|
int |
hashCode()
Deprecated.
|
String |
toString(String field)
Deprecated.
Prints a query to a string, with
field assumed to be the
default field and omitted. |
protected final Q extends MultiTermQuery query
protected MultiTermQueryWrapperFilter(Q query)
MultiTermQuery
as a Filter.public String toString(String field)
Query
field
assumed to be the
default field and omitted.public final String getField()
public DocIdSet getDocIdSet(LeafReaderContext context, Bits acceptDocs) throws IOException
getDocIdSet
in class Filter
context
- a LeafReaderContext
instance opened on the index currently
searched on. Note, it is likely that the provided reader info does not
represent the whole underlying index i.e. if the index has more than
one segment the given reader only represents a single segment.
The provided context is always an atomic context, so you can call
LeafReader.fields()
on the context's reader, for example.acceptDocs
- Bits that represent the allowable docs to match (typically deleted docs
but possibly filtering other documents)null
should be returned if
the filter doesn't accept any documents otherwise internal optimization might not apply
in the case an empty DocIdSet
is returned.IOException
Copyright © 2000-2016 Apache Software Foundation. All Rights Reserved.