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
Afficher le fichier Open project: paulirwin/lucene.net Class Usage Examples

Méthodes publiques

Méthode 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 méthode

public CreateWeight ( IndexSearcher searcher ) : Weight
searcher IndexSearcher
Résultat Weight

Equals() public méthode

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

ExtractTerms() public méthode

public ExtractTerms ( ISet terms ) : void
terms ISet
Résultat void

GetHashCode() public méthode

Returns a hash code value for this object.
public GetHashCode ( ) : int
Résultat int

TermQuery() public méthode

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

TermQuery() public méthode

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
Résultat System.Diagnostics

TermQuery() public méthode

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
Résultat System.Diagnostics

ToString() public méthode

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