Class 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.
Inherited Members
Assembly: DistributedLucene.Net.dll
Syntax
public class AutomatonQuery : MultiTermQuery
Constructors
Name | Description |
---|---|
AutomatonQuery(Term, Automaton) | Create a new AutomatonQuery from an Automaton. |
Fields
Name | Description |
---|---|
m_automaton | The automaton to match index terms against |
m_compiled | |
m_term | Term containing the field, and possibly some pattern structure |
Properties
Name | Description |
---|---|
Automaton | Returns the automaton used to create this query |
Methods
Name | Description |
---|---|
Equals(Object) | |
GetHashCode() | |
GetTermsEnum(Terms, AttributeSource) | |
ToString(String) |