Discovery Engine v1beta API - Class SearchResponse (1.0.0-beta11)

public sealed class SearchResponse : IMessage<SearchResponse>, IEquatable<SearchResponse>, IDeepCloneable<SearchResponse>, IBufferMessage, IMessage, IPageResponse<SearchResponse.Types.SearchResult>, IEnumerable<SearchResponse.Types.SearchResult>, IEnumerable

Reference documentation and code samples for the Discovery Engine v1beta API class SearchResponse.

Response message for [SearchService.Search][google.cloud.discoveryengine.v1beta.SearchService.Search] method.

Inheritance

object > SearchResponse

Namespace

Google.Cloud.DiscoveryEngine.V1Beta

Assembly

Google.Cloud.DiscoveryEngine.V1Beta.dll

Constructors

SearchResponse()

public SearchResponse()

SearchResponse(SearchResponse)

public SearchResponse(SearchResponse other)
Parameter
NameDescription
otherSearchResponse

Properties

AppliedControls

public RepeatedField<string> AppliedControls { get; }

Controls applied as part of the Control service.

Property Value
TypeDescription
RepeatedFieldstring

AttributionToken

public string AttributionToken { get; set; }

A unique search token. This should be included in the [UserEvent][google.cloud.discoveryengine.v1beta.UserEvent] logs resulting from this search, which enables accurate attribution of search model performance.

Property Value
TypeDescription
string

CorrectedQuery

public string CorrectedQuery { get; set; }

Contains the spell corrected query, if found. If the spell correction type is AUTOMATIC, then the search results are based on corrected_query. Otherwise the original query is used for search.

Property Value
TypeDescription
string

Facets

public RepeatedField<SearchResponse.Types.Facet> Facets { get; }

Results of facets requested by user.

Property Value
TypeDescription
RepeatedFieldSearchResponseTypesFacet

GuidedSearchResult

public SearchResponse.Types.GuidedSearchResult GuidedSearchResult { get; set; }

Guided search result.

Property Value
TypeDescription
SearchResponseTypesGuidedSearchResult

NextPageToken

public string NextPageToken { get; set; }

A token that can be sent as [SearchRequest.page_token][google.cloud.discoveryengine.v1beta.SearchRequest.page_token] to retrieve the next page. If this field is omitted, there are no subsequent pages.

Property Value
TypeDescription
string

QueryExpansionInfo

public SearchResponse.Types.QueryExpansionInfo QueryExpansionInfo { get; set; }

Query expansion information for the returned results.

Property Value
TypeDescription
SearchResponseTypesQueryExpansionInfo

RedirectUri

public string RedirectUri { get; set; }

The URI of a customer-defined redirect page. If redirect action is triggered, no search is performed, and only [redirect_uri][google.cloud.discoveryengine.v1beta.SearchResponse.redirect_uri] and [attribution_token][google.cloud.discoveryengine.v1beta.SearchResponse.attribution_token] are set in the response.

Property Value
TypeDescription
string

Results

public RepeatedField<SearchResponse.Types.SearchResult> Results { get; }

A list of matched documents. The order represents the ranking.

Property Value
TypeDescription
RepeatedFieldSearchResponseTypesSearchResult

Summary

public SearchResponse.Types.Summary Summary { get; set; }

A summary as part of the search results. This field is only returned if [SearchRequest.ContentSearchSpec.summary_spec][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.summary_spec] is set.

Property Value
TypeDescription
SearchResponseTypesSummary

TotalSize

public int TotalSize { get; set; }

The estimated total count of matched items irrespective of pagination. The count of [results][google.cloud.discoveryengine.v1beta.SearchResponse.results] returned by pagination may be less than the [total_size][google.cloud.discoveryengine.v1beta.SearchResponse.total_size] that matches.

Property Value
TypeDescription
int

Methods

GetEnumerator()

public IEnumerator<SearchResponse.Types.SearchResult> GetEnumerator()

Returns an enumerator that iterates through the resources in this response.

Returns
TypeDescription
IEnumeratorSearchResponseTypesSearchResult