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 \ ContentSearchSpecMethods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
var |
int
|
Returns | |
---|---|
Type | Description |
$this |