Google Cloud Discovery Engine V1beta Client - Class ContentSearchSpec (0.11.3)

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

A specification for configuring the behavior of content search.

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

Namespace

Google \ Cloud \ DiscoveryEngine \ V1beta \ SearchRequest

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ snippet_spec Google\Cloud\DiscoveryEngine\V1beta\SearchRequest\ContentSearchSpec\SnippetSpec

If snippetSpec is not specified, snippets are not included in the search response.

↳ summary_spec Google\Cloud\DiscoveryEngine\V1beta\SearchRequest\ContentSearchSpec\SummarySpec

If summarySpec is not specified, summaries are not included in the search response.

↳ extractive_content_spec Google\Cloud\DiscoveryEngine\V1beta\SearchRequest\ContentSearchSpec\ExtractiveContentSpec

If there is no extractive_content_spec provided, there will be no extractive answer in the search response.

getSnippetSpec

If snippetSpec is not specified, snippets are not included in the search response.

hasSnippetSpec

clearSnippetSpec

setSnippetSpec

If snippetSpec is not specified, snippets are not included in the search response.

Returns
Type Description
$this

getSummarySpec

If summarySpec is not specified, summaries are not included in the search response.

hasSummarySpec

clearSummarySpec

setSummarySpec

If summarySpec is not specified, summaries are not included in the search response.

Returns
Type Description
$this

getExtractiveContentSpec

If there is no extractive_content_spec provided, there will be no extractive answer in the search response.

hasExtractiveContentSpec

clearExtractiveContentSpec

setExtractiveContentSpec

If there is no extractive_content_spec provided, there will be no extractive answer in the search response.

Returns
Type Description
$this