Class WildcardQuery
Implements the wildcard search query. Supported wildcards are , which
matches any character sequence (including the empty one), and
?
,
which matches any single character. '' is the escape character.
Note this query can be slow, as it
needs to iterate over many terms. In order to prevent extremely slow WildcardQueries,
a Wildcard term should not start with the wildcard
This query uses the CONSTANT_SCORE_AUTO_REWRITE_DEFAULT rewrite method.
Inherited Members
Assembly: DistributedLucene.Net.dll
Syntax
public class WildcardQuery : AutomatonQuery
Constructors
Name | Description |
---|---|
WildcardQuery(Term) | Constructs a query for terms matching |
Fields
Name | Description |
---|---|
WILDCARD_CHAR | Char equality with support for wildcards |
WILDCARD_ESCAPE | Escape character |
WILDCARD_STRING | String equality with support for wildcards |
Properties
Name | Description |
---|---|
Term | Returns the pattern term. |
Methods
Name | Description |
---|---|
ToAutomaton(Term) | Convert Lucene wildcard syntax into an automaton. @lucene.internal |
ToString(String) | Prints a user-readable version of this query. |