Class FieldSuggester

    • Method Detail

      • prefix

        @Nullable
        public final java.lang.String prefix()
        API name: prefix
      • regex

        @Nullable
        public final java.lang.String regex()
        API name: regex
      • text

        @Nullable
        public final java.lang.String text()
        API name: text
      • 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.
      • 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.