Interface SuggestionMatch.Builder

  • Method Details

    • suggestion

      SuggestionMatch.Builder suggestion(String suggestion)

      The string that matches the query string specified in the SuggestRequest.

      Parameters:
      suggestion - The string that matches the query string specified in the SuggestRequest.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • score

      The relevance score of a suggested match.

      Parameters:
      score - The relevance score of a suggested match.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • id

      The document ID of the suggested document.

      Parameters:
      id - The document ID of the suggested document.
      Returns:
      Returns a reference to this object so that method calls can be chained together.