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

상속: Query
파일 보기 프로젝트 열기: synhershko/lucene.net 1 사용 예제들

공개 메소드들

메소드 설명
Add ( Lucene.Net.Index.Term term ) : void

Adds a term to the end of the query phrase. The relative position of the term is the one immediately after the last term added.

Add ( Lucene.Net.Index.Term term, int position ) : void

Adds a term to the end of the query phrase. The relative position of the term within the phrase is specified explicitly. This allows e.g. phrases with more than one term at the same position or phrases with gaps (e.g. in connection with stopwords).

CreateWeight ( Searcher searcher ) : Weight
Equals ( System o ) : bool

Returns true iff o is equal to this.

ExtractTerms ( System queryTerms ) : void
GetHashCode ( ) : int

Returns a hash code value for this object.

GetPositions ( ) : int[]

Returns the relative positions of terms in this phrase.

GetTerms ( ) : Term[]

Returns the set of terms in this phrase.

PhraseQuery ( ) : System

Constructs an empty phrase query.

ToString ( System f ) : System.String

Prints a user-readable version of this query.

메소드 상세

Add() 공개 메소드

Adds a term to the end of the query phrase. The relative position of the term is the one immediately after the last term added.
public Add ( Lucene.Net.Index.Term term ) : void
term Lucene.Net.Index.Term
리턴 void

Add() 공개 메소드

Adds a term to the end of the query phrase. The relative position of the term within the phrase is specified explicitly. This allows e.g. phrases with more than one term at the same position or phrases with gaps (e.g. in connection with stopwords).
public Add ( Lucene.Net.Index.Term term, int position ) : void
term Lucene.Net.Index.Term ///
position int ///
리턴 void

CreateWeight() 공개 메소드

public CreateWeight ( Searcher searcher ) : Weight
searcher Searcher
리턴 Weight

Equals() 공개 메소드

Returns true iff o is equal to this.
public Equals ( System o ) : bool
o System
리턴 bool

ExtractTerms() 공개 메소드

public ExtractTerms ( System queryTerms ) : void
queryTerms System
리턴 void

GetHashCode() 공개 메소드

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

GetPositions() 공개 메소드

Returns the relative positions of terms in this phrase.
public GetPositions ( ) : int[]
리턴 int[]

GetTerms() 공개 메소드

Returns the set of terms in this phrase.
public GetTerms ( ) : Term[]
리턴 Term[]

PhraseQuery() 공개 메소드

Constructs an empty phrase query.
public PhraseQuery ( ) : System
리턴 System

ToString() 공개 메소드

Prints a user-readable version of this query.
public ToString ( System f ) : System.String
f System
리턴 System.String