Class FieldSuggester

    • Method Detail

      • isCompletion

        public boolean isCompletion()
        Is this variant instance of kind completion?
      • completion

        public CompletionSuggester completion()
        Get the completion variant value.
        Throws:
        java.lang.IllegalStateException - if the current variant is not of the completion kind.
      • isPhrase

        public boolean isPhrase()
        Is this variant instance of kind phrase?
      • phrase

        public PhraseSuggester phrase()
        Get the phrase variant value.
        Throws:
        java.lang.IllegalStateException - if the current variant is not of the phrase kind.
      • isPrefix

        public boolean isPrefix()
        Is this variant instance of kind prefix?
      • prefix

        public java.lang.String prefix()
        Get the prefix variant value.
        Throws:
        java.lang.IllegalStateException - if the current variant is not of the prefix kind.
      • isRegex

        public boolean isRegex()
        Is this variant instance of kind regex?
      • regex

        public java.lang.String regex()
        Get the regex variant value.
        Throws:
        java.lang.IllegalStateException - if the current variant is not of the regex kind.
      • isTerm

        public boolean isTerm()
        Is this variant instance of kind term?
      • term

        public TermSuggester term()
        Get the term variant value.
        Throws:
        java.lang.IllegalStateException - if the current variant is not of the term kind.
      • isText

        public boolean isText()
        Is this variant instance of kind text?
      • text

        public java.lang.String text()
        Get the text variant value.
        Throws:
        java.lang.IllegalStateException - if the current variant is not of the text kind.