View Source GoogleApi.CloudSearch.V1.Model.SourceCrowdingConfig (google_api_cloud_search v0.24.0)

Set search results crowding limits. Crowding is a situation in which multiple results from the same source or host "crowd out" other results, diminishing the quality of search for users. To foster better search quality and source diversity in search results, you can set a condition to reduce repetitive results by source.

Attributes

  • numResults (type: integer(), default: nil) - Maximum number of results allowed from a datasource in a result page as long as results from other sources are not exhausted. Value specified must not be negative. A default value is used if this value is equal to 0. To disable crowding, set the value greater than 100.
  • numSuggestions (type: integer(), default: nil) - Maximum number of suggestions allowed from a source. No limits will be set on results if this value is less than or equal to 0.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.CloudSearch.V1.Model.SourceCrowdingConfig{
  numResults: integer() | nil,
  numSuggestions: integer() | nil
}

Functions

@spec decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.