Interface SuggestionMatch.Builder

All Superinterfaces:
Buildable, CopyableBuilder<SuggestionMatch.Builder,SuggestionMatch>, SdkBuilder<SuggestionMatch.Builder,SuggestionMatch>, SdkPojo
Enclosing class:
SuggestionMatch

public static interface SuggestionMatch.Builder extends SdkPojo, CopyableBuilder<SuggestionMatch.Builder,SuggestionMatch>
  • 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.