Class AutomatonQueries
java.lang.Object
org.elasticsearch.common.lucene.search.AutomatonQueries
Helper functions for creating various forms of
AutomatonQuery
-
Field Summary
Modifier and TypeFieldDescriptionstatic char
Char equality with support for wildcardsstatic char
Escape characterstatic char
String equality with support for wildcards -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic org.apache.lucene.util.automaton.Automaton
Build an automaton query accepting all terms with the specified prefix, ASCII case insensitive.static org.apache.lucene.search.AutomatonQuery
caseInsensitivePrefixQuery(org.apache.lucene.index.Term prefix)
Build an automaton query accepting all terms with the specified prefix, ASCII case insensitive.static org.apache.lucene.search.AutomatonQuery
caseInsensitiveTermQuery(org.apache.lucene.index.Term term)
Build an automaton accepting all terms ASCII case insensitive.static org.apache.lucene.search.AutomatonQuery
caseInsensitiveWildcardQuery(org.apache.lucene.index.Term wildcardquery)
Build an automaton matching a wildcard pattern, ASCII case insensitive.static org.apache.lucene.util.automaton.Automaton
toCaseInsensitiveChar(int codepoint, int maxDeterminizedStates)
static org.apache.lucene.util.automaton.Automaton
toCaseInsensitiveString(String s, int maxDeterminizedStates)
protected static org.apache.lucene.util.automaton.Automaton
toCaseInsensitiveString(org.apache.lucene.util.BytesRef br, int maxDeterminizedStates)
static org.apache.lucene.util.automaton.Automaton
toCaseInsensitiveWildcardAutomaton(org.apache.lucene.index.Term wildcardquery, int maxDeterminizedStates)
Convert Lucene wildcard syntax into an automaton.
-
Field Details
-
WILDCARD_STRING
public static final char WILDCARD_STRINGString equality with support for wildcards- See Also:
- Constant Field Values
-
WILDCARD_CHAR
public static final char WILDCARD_CHARChar equality with support for wildcards- See Also:
- Constant Field Values
-
WILDCARD_ESCAPE
public static final char WILDCARD_ESCAPEEscape character- See Also:
- Constant Field Values
-
-
Constructor Details
-
AutomatonQueries
public AutomatonQueries()
-
-
Method Details
-
caseInsensitivePrefix
Build an automaton query accepting all terms with the specified prefix, ASCII case insensitive. -
caseInsensitivePrefixQuery
public static org.apache.lucene.search.AutomatonQuery caseInsensitivePrefixQuery(org.apache.lucene.index.Term prefix)Build an automaton query accepting all terms with the specified prefix, ASCII case insensitive. -
caseInsensitiveTermQuery
public static org.apache.lucene.search.AutomatonQuery caseInsensitiveTermQuery(org.apache.lucene.index.Term term)Build an automaton accepting all terms ASCII case insensitive. -
caseInsensitiveWildcardQuery
public static org.apache.lucene.search.AutomatonQuery caseInsensitiveWildcardQuery(org.apache.lucene.index.Term wildcardquery)Build an automaton matching a wildcard pattern, ASCII case insensitive. -
toCaseInsensitiveWildcardAutomaton
public static org.apache.lucene.util.automaton.Automaton toCaseInsensitiveWildcardAutomaton(org.apache.lucene.index.Term wildcardquery, int maxDeterminizedStates)Convert Lucene wildcard syntax into an automaton. -
toCaseInsensitiveString
protected static org.apache.lucene.util.automaton.Automaton toCaseInsensitiveString(org.apache.lucene.util.BytesRef br, int maxDeterminizedStates) -
toCaseInsensitiveString
public static org.apache.lucene.util.automaton.Automaton toCaseInsensitiveString(String s, int maxDeterminizedStates) -
toCaseInsensitiveChar
public static org.apache.lucene.util.automaton.Automaton toCaseInsensitiveChar(int codepoint, int maxDeterminizedStates)
-