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
System.Object
MultiTermQueryWrapperFilter<Q>
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Lucene.Net.Search
Assembly: Lucene.Net.dll
Syntax
public class MultiTermQueryWrapperFilter<Q> : Filter where Q : MultiTermQuery
Type Parameters
Name | Description |
---|---|
Q |
Constructors
| Improve this Doc View SourceMultiTermQueryWrapperFilter(Q)
Wrap a MultiTermQuery as a Filter.
Declaration
protected MultiTermQueryWrapperFilter(Q query)
Parameters
Type | Name | Description |
---|---|---|
Q | query |
Fields
| Improve this Doc View Sourcem_query
Declaration
protected readonly Q m_query
Field Value
Type | Description |
---|---|
Q |
Properties
| Improve this Doc View SourceField
Returns the field name for this query
Declaration
public string Field { get; }
Property Value
Type | Description |
---|---|
System.String |
Methods
| Improve this Doc View SourceEquals(Object)
Declaration
public override sealed bool Equals(object o)
Parameters
Type | Name | Description |
---|---|---|
System.Object | o |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
System.Object.Equals(System.Object)
|
Improve this Doc
View Source
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
| Improve this Doc View SourceGetHashCode()
Declaration
public override sealed int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 |
Overrides
System.Object.GetHashCode()
|
Improve this Doc
View Source
ToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String |
Overrides
System.Object.ToString()