Reference documentation and code samples for the Google Cloud Discovery Engine V1 Client class ContentSearchSpec.
The specification that configs the desired behavior of the UCS content search.
Generated from protobuf message google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec
Namespace
Google \ Cloud \ DiscoveryEngine \ V1 \ SearchRequestMethods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ snippet_spec |
Google\Cloud\DiscoveryEngine\V1\SearchRequest\ContentSearchSpec\SnippetSpec
If there is no snippet spec provided, there will be no snippet in the search result. |
getSnippetSpec
If there is no snippet spec provided, there will be no snippet in the search result.
Returns | |
---|---|
Type | Description |
Google\Cloud\DiscoveryEngine\V1\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\V1\SearchRequest\ContentSearchSpec\SnippetSpec
|
Returns | |
---|---|
Type | Description |
$this |