Class SuggestOption<TDocument>

    • Method Detail

      • isCompletion

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

        public CompletionSuggestOption<TDocument> 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 PhraseSuggestOption 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 TermSuggestOption term()
        Get the term variant value.
        Throws:
        java.lang.IllegalStateException - if the current variant is not of the term kind.