View Source GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1SearchResponseSearchResult (google_api_discovery_engine v0.22.0)

Represents the search results.

Attributes

  • chunk (type: GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1Chunk.t, default: nil) - The chunk data in the search response if the SearchRequest.ContentSearchSpec.search_result_mode is set to CHUNKS.
  • document (type: GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1Document.t, default: nil) - The document data snippet in the search response. Only fields that are marked as retrievable are populated.
  • id (type: String.t, default: nil) - Document.id of the searched Document.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() ::
  %GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1SearchResponseSearchResult{
    chunk:
      GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1Chunk.t()
      | nil,
    document:
      GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1Document.t()
      | nil,
    id: String.t() | nil
  }

Functions

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

Unwrap a decoded JSON object into its complex fields.