Class TermQuery
A Query that matches documents containing a term.
this may be combined with other terms with a BooleanQuery.
Inheritance
System.Object
TermQuery
Assembly: Lucene.Net.dll
Syntax
public class TermQuery : Query
Constructors
|
Improve this Doc
View Source
TermQuery(Term)
Constructs a query for the term t
.
Declaration
Parameters
Type |
Name |
Description |
Term |
t |
|
|
Improve this Doc
View Source
TermQuery(Term, TermContext)
Expert: constructs a TermQuery that will use the
provided docFreq instead of looking up the docFreq
against the searcher.
Declaration
public TermQuery(Term t, TermContext states)
Parameters
|
Improve this Doc
View Source
TermQuery(Term, Int32)
Expert: constructs a TermQuery that will use the
provided docFreq
instead of looking up the docFreq
against the searcher.
Declaration
public TermQuery(Term t, int docFreq)
Parameters
Type |
Name |
Description |
Term |
t |
|
System.Int32 |
docFreq |
|
Properties
|
Improve this Doc
View Source
Term
Returns the term of this query.
Declaration
public virtual Term Term { get; }
Property Value
Methods
|
Improve this Doc
View Source
CreateWeight(IndexSearcher)
Declaration
public override Weight CreateWeight(IndexSearcher searcher)
Parameters
Returns
Overrides
|
Improve this Doc
View Source
Equals(Object)
Returns true
if o
is equal to this.
Declaration
public override bool Equals(object o)
Parameters
Type |
Name |
Description |
System.Object |
o |
|
Returns
Type |
Description |
System.Boolean |
|
Overrides
|
Improve this Doc
View Source
Declaration
public override void ExtractTerms(ISet<Term> terms)
Parameters
Type |
Name |
Description |
ISet<Term> |
terms |
|
Overrides
|
Improve this Doc
View Source
GetHashCode()
Returns a hash code value for this object.
Declaration
public override int GetHashCode()
Returns
Type |
Description |
System.Int32 |
|
Overrides
|
Improve this Doc
View Source
ToString(String)
Prints a user-readable version of this query.
Declaration
public override string ToString(string field)
Parameters
Type |
Name |
Description |
System.String |
field |
|
Returns
Type |
Description |
System.String |
|
Overrides