C# Class Lucene.Net.Search.TermQuery

A Query that matches documents containing a term. this may be combined with other terms with a BooleanQuery.
Inheritance: Query
Datei anzeigen Open project: paulirwin/lucene.net Class Usage Examples

Public Methods

Method Description
CreateWeight ( IndexSearcher searcher ) : Weight
Equals ( object o ) : bool

Returns true iff o is equal to this.

ExtractTerms ( ISet terms ) : void
GetHashCode ( ) : int

Returns a hash code value for this object.

TermQuery ( Term t ) : System.Diagnostics

Constructs a query for the term t.

TermQuery ( Term t, TermContext states ) : System.Diagnostics

Expert: constructs a TermQuery that will use the provided docFreq instead of looking up the docFreq against the searcher.

TermQuery ( Term t, int docFreq ) : System.Diagnostics

Expert: constructs a TermQuery that will use the provided docFreq instead of looking up the docFreq against the searcher.

ToString ( string field ) : string

Prints a user-readable version of this query.

Method Details

CreateWeight() public method

public CreateWeight ( IndexSearcher searcher ) : Weight
searcher IndexSearcher
return Weight

Equals() public method

Returns true iff o is equal to this.
public Equals ( object o ) : bool
o object
return bool

ExtractTerms() public method

public ExtractTerms ( ISet terms ) : void
terms ISet
return void

GetHashCode() public method

Returns a hash code value for this object.
public GetHashCode ( ) : int
return int

TermQuery() public method

Constructs a query for the term t.
public TermQuery ( Term t ) : System.Diagnostics
t Term
return System.Diagnostics

TermQuery() public method

Expert: constructs a TermQuery that will use the provided docFreq instead of looking up the docFreq against the searcher.
public TermQuery ( Term t, TermContext states ) : System.Diagnostics
t Term
states TermContext
return System.Diagnostics

TermQuery() public method

Expert: constructs a TermQuery that will use the provided docFreq instead of looking up the docFreq against the searcher.
public TermQuery ( Term t, int docFreq ) : System.Diagnostics
t Term
docFreq int
return System.Diagnostics

ToString() public method

Prints a user-readable version of this query.
public ToString ( string field ) : string
field string
return string