Class TermFilter
A filter that includes documents that match with a specific term.
Inheritance
System.Object
Lucene.Net.Search.Filter
TermFilter
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.Queries
Assembly: Lucene.Net.Queries.dll
Syntax
public sealed class TermFilter : Filter
Constructors
| Improve this Doc View SourceTermFilter(Term)
Declaration
public TermFilter(Term term)
Parameters
Type | Name | Description |
---|---|---|
Lucene.Net.Index.Term | term | The term documents need to have in order to be a match for this filter. |
Properties
| Improve this Doc View SourceTerm
Gets the term this filter includes documents with.
Declaration
public Term Term { get; }
Property Value
Type | Description |
---|---|
Lucene.Net.Index.Term |
Methods
| Improve this Doc View SourceEquals(Object)
Declaration
public override 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)
Declaration
public override DocIdSet GetDocIdSet(AtomicReaderContext context, IBits acceptDocs)
Parameters
Type | Name | Description |
---|---|---|
Lucene.Net.Index.AtomicReaderContext | context | |
Lucene.Net.Util.IBits | acceptDocs |
Returns
Type | Description |
---|---|
Lucene.Net.Search.DocIdSet |
Overrides
Lucene.Net.Search.Filter.GetDocIdSet(Lucene.Net.Index.AtomicReaderContext, Lucene.Net.Util.IBits)
|
Improve this Doc
View Source
GetHashCode()
Declaration
public override 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()