View Source GoogleApi.ContentWarehouse.V1.Model.ExtraSnippetInfoResponseQuerySubitem (google_api_content_warehouse v0.4.0)

A query term, phrase, or synonym. An original query term or phrase is called an "item". Each item may have more than one "subitem" if there are synonyms. In rare cases a subitem may correspond to multiple items, such as the subitem "cia" in the query [central intelligence agency].

Attributes

  • isHighlighted (type: boolean(), default: nil) - Additional information from the SnippetQuery.
  • isOptional (type: boolean(), default: nil) -
  • isOriginal (type: boolean(), default: nil) - true iff this subitem was an original query term or phrase. Can only be false if want_all_query_subitems == true in the request.
  • items (type: integer(), default: nil) - a bitvector of the query items corresponding to this subitem. Typically only one bit is set, but see comment above.
  • text (type: String.t, default: nil) - text associated with this query item
  • weight (type: integer(), default: nil) - the weight of this query item, as calculated by SubitemWeight(): https://qwiki.corp.google.com/display/Q/SnippetWeights

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() ::
  %GoogleApi.ContentWarehouse.V1.Model.ExtraSnippetInfoResponseQuerySubitem{
    isHighlighted: boolean() | nil,
    isOptional: boolean() | nil,
    isOriginal: boolean() | nil,
    items: integer() | nil,
    text: String.t() | nil,
    weight: integer() | nil
  }

Functions

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

Unwrap a decoded JSON object into its complex fields.