Reference documentation and code samples for the Google Cloud Discovery Engine V1beta Client class ContentSearchSpec.
The specification that configs the desired behavior of the UCS content search.
Generated from protobuf message google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec
Namespace
Google \ Cloud \ DiscoveryEngine \ V1beta \ SearchRequestMethods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ snippet_spec |
Google\Cloud\DiscoveryEngine\V1beta\SearchRequest\ContentSearchSpec\SnippetSpec
If there is no snippet spec provided, there will be no snippet in the search result. |
↳ summary_spec |
Google\Cloud\DiscoveryEngine\V1beta\SearchRequest\ContentSearchSpec\SummarySpec
If there is no summary spec provided, there will be no summary 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 there is no snippet spec provided, there will be no snippet in the search result.
Returns | |
---|---|
Type | Description |
Google\Cloud\DiscoveryEngine\V1beta\SearchRequest\ContentSearchSpec\SnippetSpec|null |
hasSnippetSpec
clearSnippetSpec
setSnippetSpec
If there is no snippet spec provided, there will be no snippet in the search result.
Parameter | |
---|---|
Name | Description |
var |
Google\Cloud\DiscoveryEngine\V1beta\SearchRequest\ContentSearchSpec\SnippetSpec
|
Returns | |
---|---|
Type | Description |
$this |
getSummarySpec
If there is no summary spec provided, there will be no summary in the search response.
Returns | |
---|---|
Type | Description |
Google\Cloud\DiscoveryEngine\V1beta\SearchRequest\ContentSearchSpec\SummarySpec|null |
hasSummarySpec
clearSummarySpec
setSummarySpec
If there is no summary spec provided, there will be no summary in the search response.
Parameter | |
---|---|
Name | Description |
var |
Google\Cloud\DiscoveryEngine\V1beta\SearchRequest\ContentSearchSpec\SummarySpec
|
Returns | |
---|---|
Type | Description |
$this |
getExtractiveContentSpec
If there is no extractive_content_spec provided, there will be no extractive answer in the search response.
Returns | |
---|---|
Type | Description |
Google\Cloud\DiscoveryEngine\V1beta\SearchRequest\ContentSearchSpec\ExtractiveContentSpec|null |
hasExtractiveContentSpec
clearExtractiveContentSpec
setExtractiveContentSpec
If there is no extractive_content_spec provided, there will be no extractive answer in the search response.
Parameter | |
---|---|
Name | Description |
var |
Google\Cloud\DiscoveryEngine\V1beta\SearchRequest\ContentSearchSpec\ExtractiveContentSpec
|
Returns | |
---|---|
Type | Description |
$this |