Class AutomatonQueries

java.lang.Object
org.elasticsearch.common.lucene.search.AutomatonQueries

public class AutomatonQueries extends Object
Helper functions for creating various forms of AutomatonQuery
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static char
    Char equality with support for wildcards
    static char
    Escape character
    static char
    String equality with support for wildcards
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static 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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • WILDCARD_STRING

      public static final char WILDCARD_STRING
      String equality with support for wildcards
      See Also:
      Constant Field Values
    • WILDCARD_CHAR

      public static final char WILDCARD_CHAR
      Char equality with support for wildcards
      See Also:
      Constant Field Values
    • WILDCARD_ESCAPE

      public static final char WILDCARD_ESCAPE
      Escape character
      See Also:
      Constant Field Values
  • Constructor Details

    • AutomatonQueries

      public AutomatonQueries()
  • Method Details

    • caseInsensitivePrefix

      public static org.apache.lucene.util.automaton.Automaton caseInsensitivePrefix(String s)
      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)