Class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ExternalApiElasticSearchParams
- Inherits:
-
Object
- Object
- Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ExternalApiElasticSearchParams
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/aiplatform_v1/classes.rb,
lib/google/apis/aiplatform_v1/representations.rb,
lib/google/apis/aiplatform_v1/representations.rb
Overview
The search parameters to use for the ELASTIC_SEARCH spec.
Instance Attribute Summary collapse
-
#index ⇒ String
The ElasticSearch index to use.
-
#num_hits ⇒ Fixnum
Optional.
-
#search_template ⇒ String
The ElasticSearch search template to use.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudAiplatformV1ExternalApiElasticSearchParams
constructor
A new instance of GoogleCloudAiplatformV1ExternalApiElasticSearchParams.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudAiplatformV1ExternalApiElasticSearchParams
Returns a new instance of GoogleCloudAiplatformV1ExternalApiElasticSearchParams.
11939 11940 11941 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 11939 def initialize(**args) update!(**args) end |
Instance Attribute Details
#index ⇒ String
The ElasticSearch index to use.
Corresponds to the JSON property index
11926 11927 11928 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 11926 def index @index end |
#num_hits ⇒ Fixnum
Optional. Number of hits (chunks) to request. When specified, it is passed to
Elasticsearch as the num_hits param.
Corresponds to the JSON property numHits
11932 11933 11934 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 11932 def num_hits @num_hits end |
#search_template ⇒ String
The ElasticSearch search template to use.
Corresponds to the JSON property searchTemplate
11937 11938 11939 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 11937 def search_template @search_template end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
11944 11945 11946 11947 11948 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 11944 def update!(**args) @index = args[:index] if args.key?(:index) @num_hits = args[:num_hits] if args.key?(:num_hits) @search_template = args[:search_template] if args.key?(:search_template) end |