Class MultiTermQueryWrapperFilter<Q>
A wrapper for MultiTermQuery, that exposes its functionality as a Filter.
MultiTermQueryWrapperFilter<Q> 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<Q>. This class also provides the functionality behind CONSTANT_SCORE_FILTER_REWRITE; this is why it is not abstract.Inheritance
MultiTermQueryWrapperFilter<Q>
Inherited Members
Namespace: Lucene.Net.Search
Assembly: Lucene.Net.dll
Syntax
public class MultiTermQueryWrapperFilter<Q> : Filter where Q : MultiTermQuery
Type Parameters
Name | Description |
---|---|
Q |
Constructors
MultiTermQueryWrapperFilter(Q)
Wrap a MultiTermQuery as a Filter.
Declaration
protected MultiTermQueryWrapperFilter(Q query)
Parameters
Type | Name | Description |
---|---|---|
Q | query |
Fields
m_query
A wrapper for MultiTermQuery, that exposes its functionality as a Filter.
MultiTermQueryWrapperFilter<Q> 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<Q>. This class also provides the functionality behind CONSTANT_SCORE_FILTER_REWRITE; this is why it is not abstract.Declaration
protected readonly Q m_query
Field Value
Type | Description |
---|---|
Q |
Properties
Field
Returns the field name for this query
Declaration
public string Field { get; }
Property Value
Type | Description |
---|---|
string |
Methods
Equals(object)
Determines whether the specified object is equal to the current object.
Declaration
public override sealed bool Equals(object o)
Parameters
Type | Name | Description |
---|---|---|
object | o |
Returns
Type | Description |
---|---|
bool | true if the specified object is equal to the current object; otherwise, false. |
Overrides
GetDocIdSet(AtomicReaderContext, IBits)
Returns a DocIdSet with documents that should be permitted in search results.
Declaration
public override DocIdSet GetDocIdSet(AtomicReaderContext context, IBits acceptDocs)
Parameters
Type | Name | Description |
---|---|---|
AtomicReaderContext | context | |
IBits | acceptDocs |
Returns
Type | Description |
---|---|
DocIdSet |
Overrides
GetHashCode()
Serves as the default hash function.
Declaration
public override sealed int GetHashCode()
Returns
Type | Description |
---|---|
int | A hash code for the current object. |
Overrides
ToString()
Returns a string that represents the current object.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string | A string that represents the current object. |