ExtraSnippetInfoResponseQuerySubitem

GoogleApi.ContentWarehouse.V1.Model.ExtraSnippetInfoResponseQuerySubitem


Table of Contents ▼

Jump to a specific part of the page:

Description

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 List

This module has the following attributes (case-insensitive ascending order):

View Attributes

Attributes

  1. isHighlighted (type: boolean(), default: nil)
    - Additional information from the SnippetQuery.
  2. isOptional (type: boolean(), default: nil)
    -
  3. 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.
  4. 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.
  5. text (type: String.t, default: nil)
    - text associated with this query item
  6. weight (type: integer(), default: nil)
    - the weight of this query item, as calculated by SubitemWeight(): https://qwiki.corp.google.com/display/Q/SnippetWeights

Type

@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
}

Function

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

Data sourced from HexDocs : GoogleApi.ContentWarehouse.V1.Model.ExtraSnippetInfoResponseQuerySubitem