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

Information about the result support for a given interpretation.

Attributes

  • debug (type: String.t, default: nil) - A debug message that summarizes how the score was computed. Populated if result was matched and in debug mode.
  • docid (type: String.t, default: nil) - The docid of the result, if available.
  • estimatedNaviness (type: number(), default: nil) - The naviness for this result. Each matcher can determine the naviness to use for the result. This can be copied directly from the result, or estimated based on clicks or some other heuristic. The value should be between 0 and 1 and should indicate the probability that the user will click on that result. The estimated_naviness is used to break ties when between results with the same rank.
  • provenance (type: list(GoogleApi.ContentWarehouse.V1.Model.UniversalsearchNewPackerKnowledgeResultSupportProvenance.t), default: nil) - All provenances of this result support.
  • rank (type: integer(), default: nil) - The 0 based rank for this result. When the source is MAIN_GSR this corresponds to the index of the result in the generic search response specific in AddKnowledgePackerPreprocessors. Otherwise, the rank should be estimated so the result is closest in importance to the web result at the same rank.
  • score (type: number(), default: nil) - A score from 0 to 1 inclusive that represents the strength of the result support. A score of one indicates this result is entirely about this interpretation.
  • source (type: String.t, default: nil) - The source of the result support.
  • url (type: String.t, default: nil) - The result url when available.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() ::
  %GoogleApi.ContentWarehouse.V1.Model.UniversalsearchNewPackerKnowledgeResultSupport{
    debug: String.t() | nil,
    docid: String.t() | nil,
    estimatedNaviness: number() | nil,
    provenance:
      [
        GoogleApi.ContentWarehouse.V1.Model.UniversalsearchNewPackerKnowledgeResultSupportProvenance.t()
      ]
      | nil,
    rank: integer() | nil,
    score: number() | nil,
    source: String.t() | nil,
    url: String.t() | nil
  }

Functions

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

Unwrap a decoded JSON object into its complex fields.