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

A named attribute associated with an item which can be used for influencing the ranking of the item based on the context in the request.

Attributes

  • name (type: String.t, default: nil) - The name of the attribute. It should not be empty. The maximum length is 32 characters. The name must start with a letter and can only contain letters (A-Z, a-z) or numbers (0-9). The name will be normalized (lower-cased) before being matched.
  • values (type: list(String.t), default: nil) - Text values of the attribute. The maximum number of elements is 10. The maximum length of an element in the array is 32 characters. The value will be normalized (lower-cased) before being matched.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.CloudSearch.V1.Model.ContextAttribute{
  name: String.t() | nil,
  values: [String.t()] | nil
}

Functions

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

Unwrap a decoded JSON object into its complex fields.