C# Класс Lucene.Net.Search.TermQuery

A Query that matches documents containing a term. this may be combined with other terms with a BooleanQuery.
Наследование: Query
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Описание методов

CreateWeight() публичный Метод

public CreateWeight ( IndexSearcher searcher ) : Weight
searcher IndexSearcher
Результат Weight

Equals() публичный Метод

Returns true iff o is equal to this.
public Equals ( object o ) : bool
o object
Результат bool

ExtractTerms() публичный Метод

public ExtractTerms ( ISet terms ) : void
terms ISet
Результат void

GetHashCode() публичный Метод

Returns a hash code value for this object.
public GetHashCode ( ) : int
Результат int

TermQuery() публичный Метод

Constructs a query for the term t.
public TermQuery ( Term t ) : System.Diagnostics
t Term
Результат System.Diagnostics

TermQuery() публичный Метод

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
Результат System.Diagnostics

TermQuery() публичный Метод

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
Результат System.Diagnostics

ToString() публичный Метод

Prints a user-readable version of this query.
public ToString ( string field ) : string
field string
Результат string