Discovery Engine V1BETA API - Class Google::Cloud::DiscoveryEngine::V1beta::SearchRequest::ContentSearchSpec::SummarySpec (v0.2.0)

Reference documentation and code samples for the Discovery Engine V1BETA API class Google::Cloud::DiscoveryEngine::V1beta::SearchRequest::ContentSearchSpec::SummarySpec.

The specification that configs the summary in the search response.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#summary_result_count

def summary_result_count() -> ::Integer
Returns
  • (::Integer) — The number of top results the summary should be generated from. If the number of returned results is less than summary_result_count, then the summary would be derived from all the results; otherwise, the summary would be derived from the top results.

    At most 5 results can be used for generating summary.

#summary_result_count=

def summary_result_count=(value) -> ::Integer
Parameter
  • value (::Integer) — The number of top results the summary should be generated from. If the number of returned results is less than summary_result_count, then the summary would be derived from all the results; otherwise, the summary would be derived from the top results.

    At most 5 results can be used for generating summary.

Returns
  • (::Integer) — The number of top results the summary should be generated from. If the number of returned results is less than summary_result_count, then the summary would be derived from all the results; otherwise, the summary would be derived from the top results.

    At most 5 results can be used for generating summary.