Reference documentation and code samples for the Discovery Engine V1BETA API class Google::Cloud::DiscoveryEngine::V1beta::SearchRequest::ContentSearchSpec::SnippetSpec.
The specification that configs the snippet in the search results.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#max_snippet_count
def max_snippet_count() -> ::Integer
-
(::Integer) — Max number of snippets returned in each search result.
If the matching snippets is less than the max_snippet_count, return all
of the snippets; otherwise, return the max_snippet_count.
At most 5 snippets will be returned for each SearchResult.
#max_snippet_count=
def max_snippet_count=(value) -> ::Integer
-
value (::Integer) — Max number of snippets returned in each search result.
If the matching snippets is less than the max_snippet_count, return all
of the snippets; otherwise, return the max_snippet_count.
At most 5 snippets will be returned for each SearchResult.
-
(::Integer) — Max number of snippets returned in each search result.
If the matching snippets is less than the max_snippet_count, return all
of the snippets; otherwise, return the max_snippet_count.
At most 5 snippets will be returned for each SearchResult.
#reference_only
def reference_only() -> ::Boolean
- (::Boolean) — if true, only snippet reference is returned.
#reference_only=
def reference_only=(value) -> ::Boolean
- value (::Boolean) — if true, only snippet reference is returned.
- (::Boolean) — if true, only snippet reference is returned.