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
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
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