Class: Google::Cloud::DiscoveryEngine::V1beta::SearchRequest::ContentSearchSpec

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/discoveryengine/v1beta/search_service.rb

Overview

The specification that configs the desired behavior of the UCS content search.

Defined Under Namespace

Classes: SnippetSpec, SummarySpec

Instance Attribute Summary collapse

Instance Attribute Details

#snippet_spec::Google::Cloud::DiscoveryEngine::V1beta::SearchRequest::ContentSearchSpec::SnippetSpec

Returns If there is no snippet spec provided, there will be no snippet in the search result.

Returns:



418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
# File 'proto_docs/google/cloud/discoveryengine/v1beta/search_service.rb', line 418

class ContentSearchSpec
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # The specification that configs the snippet in the search results.
  # @!attribute [rw] max_snippet_count
  #   @return [::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.
  # @!attribute [rw] reference_only
  #   @return [::Boolean]
  #     if true, only snippet reference is returned.
  class SnippetSpec
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # The specification that configs the summary in the search response.
  # @!attribute [rw] summary_result_count
  #   @return [::Integer]
  #     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.
  class SummarySpec
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end

#summary_spec::Google::Cloud::DiscoveryEngine::V1beta::SearchRequest::ContentSearchSpec::SummarySpec

Returns If there is no summary spec provided, there will be no summary in the search response.

Returns:



418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
# File 'proto_docs/google/cloud/discoveryengine/v1beta/search_service.rb', line 418

class ContentSearchSpec
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # The specification that configs the snippet in the search results.
  # @!attribute [rw] max_snippet_count
  #   @return [::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.
  # @!attribute [rw] reference_only
  #   @return [::Boolean]
  #     if true, only snippet reference is returned.
  class SnippetSpec
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # The specification that configs the summary in the search response.
  # @!attribute [rw] summary_result_count
  #   @return [::Integer]
  #     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.
  class SummarySpec
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end