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

A Query that will match terms against a finite-state machine.

this query will match documents that contain terms accepted by a given finite-state machine. The automaton can be constructed with the Lucene.Net.Util.Automaton API. Alternatively, it can be created from a regular expression with RegexpQuery or from the standard Lucene wildcard syntax with WildcardQuery.

When the query is executed, it will create an equivalent DFA of the finite-state machine, and will enumerate the term dictionary in an intelligent way to reduce the number of comparisons. For example: the regular expression of [dl]og? will make approximately four comparisons: do, dog, lo, and log.

@lucene.experimental
상속: MultiTermQuery
파일 보기 프로젝트 열기: paulirwin/lucene.net 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
Automaton_Renamed Automaton
Compiled CompiledAutomaton
Term Term

공개 메소드들

메소드 설명
AutomatonQuery ( Term term, Automaton automaton ) : System.Text

Create a new AutomatonQuery from an Automaton.

Equals ( object obj ) : bool
GetHashCode ( ) : int
GetTermsEnum ( Terms terms, AttributeSource atts ) : TermsEnum
ToString ( string field ) : string

메소드 상세

AutomatonQuery() 공개 메소드

Create a new AutomatonQuery from an Automaton.
public AutomatonQuery ( Term term, Automaton automaton ) : System.Text
term Term Term containing field and possibly some pattern structure. The /// term text is ignored.
automaton Automaton Automaton to run, terms that are accepted are considered a /// match.
리턴 System.Text

Equals() 공개 메소드

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

GetHashCode() 공개 메소드

public GetHashCode ( ) : int
리턴 int

GetTermsEnum() 공개 메소드

public GetTermsEnum ( Terms terms, AttributeSource atts ) : TermsEnum
terms Terms
atts AttributeSource
리턴 TermsEnum

ToString() 공개 메소드

public ToString ( string field ) : string
field string
리턴 string

프로퍼티 상세

Automaton_Renamed 보호되어 있는 프로퍼티

the automaton to match index terms against
protected Automaton Automaton_Renamed
리턴 Automaton

Compiled 보호되어 있는 프로퍼티

protected CompiledAutomaton Compiled
리턴 CompiledAutomaton

Term 보호되어 있는 프로퍼티

term containing the field, and possibly some pattern structure
protected Term Term
리턴 Term