C# 클래스 Lucene.Net.Search.Query

상속: System.ICloneable
파일 보기 프로젝트 열기: apache/lucenenet 1 사용 예제들

공개 메소드들

메소드 설명
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