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

Наследование: System.ICloneable
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
Clone ( ) : object

Returns a clone of this query.

CreateWeight ( IndexSearcher searcher ) : Weight

Expert: Constructs an appropriate Weight implementation for this query.

Only implemented by primitive queries, which re-write to themselves.

Equals ( object obj ) : bool
ExtractTerms ( ISet terms ) : void

Expert: adds all terms occurring in this query to the terms set. Only works if this query is in its #rewrite rewritten form.

GetHashCode ( ) : int
Rewrite ( IndexReader reader ) : Query

Expert: called to re-write queries into primitive queries. For example, a PrefixQuery will be rewritten into a BooleanQuery that consists of TermQuerys.

ToString ( ) : string

Prints a query to a string.

ToString ( string field ) : string

Prints a query to a string, with field assumed to be the default field and omitted.

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

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

Returns a clone of this query.
public Clone ( ) : object
Результат object

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

Expert: Constructs an appropriate Weight implementation for this query.

Only implemented by primitive queries, which re-write to themselves.

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

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

public Equals ( object obj ) : bool
obj object
Результат bool

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

Expert: adds all terms occurring in this query to the terms set. Only works if this query is in its #rewrite rewritten form.
if this query is not yet rewritten
public ExtractTerms ( ISet terms ) : void
terms ISet
Результат void

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

public GetHashCode ( ) : int
Результат int

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

Expert: called to re-write queries into primitive queries. For example, a PrefixQuery will be rewritten into a BooleanQuery that consists of TermQuerys.
public Rewrite ( IndexReader reader ) : Query
reader IndexReader
Результат Query

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

Prints a query to a string.
public ToString ( ) : string
Результат string

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

Prints a query to a string, with field assumed to be the default field and omitted.
public abstract ToString ( string field ) : string
field string
Результат string