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

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

공개 프로퍼티들

프로퍼티 타입 설명
CONSTANT_SCORE_AUTO_REWRITE_DEFAULT RewriteMethod
CONSTANT_SCORE_BOOLEAN_QUERY_REWRITE RewriteMethod
CONSTANT_SCORE_FILTER_REWRITE RewriteMethod
SCORING_BOOLEAN_QUERY_REWRITE RewriteMethod

보호된 프로퍼티들

프로퍼티 타입 설명
internalRewriteMethod RewriteMethod

공개 메소드들

메소드 설명
ClearTotalNumberOfTerms ( ) : void

Expert: Resets the counting of unique terms. Do this before executing the query/filter.

Equals ( System obj ) : bool
GetHashCode ( ) : int
Rewrite ( Lucene.Net.Index.IndexReader reader ) : Query

보호된 메소드들

메소드 설명
GetEnum ( Lucene.Net.Index.IndexReader reader ) : Lucene.Net.Search.FilteredTermEnum

Construct the enumeration to be used, expanding the pattern term.

IncTotalNumberOfTerms ( int inc ) : void
MultiTermQuery ( ) : System

Constructs a query matching terms that cannot be represented with a single Term.

메소드 상세

ClearTotalNumberOfTerms() 공개 메소드

Expert: Resets the counting of unique terms. Do this before executing the query/filter.
public ClearTotalNumberOfTerms ( ) : void
리턴 void

Equals() 공개 메소드

public Equals ( System obj ) : bool
obj System
리턴 bool

GetEnum() 보호된 추상적인 메소드

Construct the enumeration to be used, expanding the pattern term.
protected abstract GetEnum ( Lucene.Net.Index.IndexReader reader ) : Lucene.Net.Search.FilteredTermEnum
reader Lucene.Net.Index.IndexReader
리턴 Lucene.Net.Search.FilteredTermEnum

GetHashCode() 공개 메소드

public GetHashCode ( ) : int
리턴 int

IncTotalNumberOfTerms() 보호된 메소드

protected IncTotalNumberOfTerms ( int inc ) : void
inc int
리턴 void

MultiTermQuery() 보호된 메소드

Constructs a query matching terms that cannot be represented with a single Term.
protected MultiTermQuery ( ) : System
리턴 System

Rewrite() 공개 메소드

public Rewrite ( Lucene.Net.Index.IndexReader reader ) : Query
reader Lucene.Net.Index.IndexReader
리턴 Query

프로퍼티 상세

CONSTANT_SCORE_AUTO_REWRITE_DEFAULT 공개적으로 정적으로 프로퍼티

Read-only default instance of ConstantScoreAutoRewrite , with ConstantScoreAutoRewrite.SetTermCountCutoff set to ConstantScoreAutoRewrite.DEFAULT_TERM_COUNT_CUTOFF and ConstantScoreAutoRewrite.SetDocCountPercent set to ConstantScoreAutoRewrite.DEFAULT_DOC_COUNT_PERCENT . Note that you cannot alter the configuration of this instance; you'll need to create a private instance instead.
public static RewriteMethod,Lucene.Net.Search CONSTANT_SCORE_AUTO_REWRITE_DEFAULT
리턴 RewriteMethod

CONSTANT_SCORE_BOOLEAN_QUERY_REWRITE 공개적으로 정적으로 프로퍼티

Like SCORING_BOOLEAN_QUERY_REWRITE except scores are not computed. Instead, each matching document receives a constant score equal to the query's boost.

NOTE: This rewrite method will hit BooleanQuery.TooManyClauses if the number of terms exceeds BooleanQuery.GetMaxClauseCount.

public static RewriteMethod,Lucene.Net.Search CONSTANT_SCORE_BOOLEAN_QUERY_REWRITE
리턴 RewriteMethod

CONSTANT_SCORE_FILTER_REWRITE 공개적으로 정적으로 프로퍼티

A rewrite method that first creates a private Filter, by visiting each term in sequence and marking all docs for that term. Matching documents are assigned a constant score equal to the query's boost.

This method is faster than the BooleanQuery rewrite methods when the number of matched terms or matched documents is non-trivial. Also, it will never hit an errant BooleanQuery.TooManyClauses exception.

public static RewriteMethod,Lucene.Net.Search CONSTANT_SCORE_FILTER_REWRITE
리턴 RewriteMethod

SCORING_BOOLEAN_QUERY_REWRITE 공개적으로 정적으로 프로퍼티

A rewrite method that first translates each term into Occur.SHOULD clause in a BooleanQuery, and keeps the scores as computed by the query. Note that typically such scores are meaningless to the user, and require non-trivial CPU to compute, so it's almost always better to use CONSTANT_SCORE_AUTO_REWRITE_DEFAULT instead.

NOTE: This rewrite method will hit BooleanQuery.TooManyClauses if the number of terms exceeds BooleanQuery.GetMaxClauseCount.

public static RewriteMethod,Lucene.Net.Search SCORING_BOOLEAN_QUERY_REWRITE
리턴 RewriteMethod

internalRewriteMethod 보호되어 있는 프로퍼티

protected RewriteMethod,Lucene.Net.Search internalRewriteMethod
리턴 RewriteMethod