Google Cloud Discovery Engine V1beta Client - Class SummarySpec (0.3.0)

Reference documentation and code samples for the Google Cloud Discovery Engine V1beta Client class SummarySpec.

The specification that configs the summary in the search response.

Generated from protobuf message google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec

Namespace

Google \ Cloud \ DiscoveryEngine \ V1beta \ SearchRequest \ ContentSearchSpec

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ summary_result_count int

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.

getSummaryResultCount

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
TypeDescription
int

setSummaryResultCount

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.

Parameter
NameDescription
var int
Returns
TypeDescription
$this