GoogleApi.CloudSearch.V1.Model.SuggestResult (google_api_cloud_search v0.8.1) View Source

One suggestion result.

Attributes

  • peopleSuggestion (type: GoogleApi.CloudSearch.V1.Model.PeopleSuggestion.t, default: nil) - This is present when the suggestion indicates a person. It contains more information about the person - like their email ID, name etc.
  • querySuggestion (type: GoogleApi.CloudSearch.V1.Model.QuerySuggestion.t, default: nil) - This field will be present if the suggested query is a word/phrase completion.
  • source (type: GoogleApi.CloudSearch.V1.Model.Source.t, default: nil) - The source of the suggestion.
  • suggestedQuery (type: String.t, default: nil) - The suggested query that will be used for search, when the user clicks on the suggestion

Link to this section Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Link to this section Types

Specs

t() :: %GoogleApi.CloudSearch.V1.Model.SuggestResult{
  peopleSuggestion: GoogleApi.CloudSearch.V1.Model.PeopleSuggestion.t(),
  querySuggestion: GoogleApi.CloudSearch.V1.Model.QuerySuggestion.t(),
  source: GoogleApi.CloudSearch.V1.Model.Source.t(),
  suggestedQuery: String.t()
}

Link to this section Functions

Specs

decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.