algolia 3.5.0 → 3.5.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +18 -0
- data/Gemfile.lock +1 -1
- data/lib/algolia/api/abtesting_client.rb +17 -16
- data/lib/algolia/api/analytics_client.rb +173 -333
- data/lib/algolia/api/ingestion_client.rb +40 -200
- data/lib/algolia/api/insights_client.rb +18 -32
- data/lib/algolia/api/monitoring_client.rb +33 -25
- data/lib/algolia/api/personalization_client.rb +16 -8
- data/lib/algolia/api/query_suggestions_client.rb +17 -9
- data/lib/algolia/api/recommend_client.rb +17 -9
- data/lib/algolia/api/search_client.rb +63 -110
- data/lib/algolia/configuration.rb +16 -1
- data/lib/algolia/models/abtesting/ab_test_configuration.rb +0 -2
- data/lib/algolia/models/abtesting/ab_tests_variant.rb +0 -18
- data/lib/algolia/models/abtesting/ab_tests_variant_search_params.rb +0 -18
- data/lib/algolia/models/abtesting/add_ab_tests_request.rb +0 -18
- data/lib/algolia/models/abtesting/minimum_detectable_effect.rb +0 -18
- data/lib/algolia/models/abtesting/schedule_ab_tests_request.rb +0 -18
- data/lib/algolia/models/abtesting/variant.rb +0 -20
- data/lib/algolia/models/analytics/click_position.rb +0 -32
- data/lib/algolia/models/analytics/daily_add_to_cart_rates.rb +0 -28
- data/lib/algolia/models/analytics/daily_average_clicks.rb +0 -24
- data/lib/algolia/models/analytics/daily_click_through_rates.rb +0 -28
- data/lib/algolia/models/analytics/daily_conversion_rates.rb +0 -28
- data/lib/algolia/models/analytics/daily_no_click_rates.rb +0 -32
- data/lib/algolia/models/analytics/daily_no_results_rates.rb +0 -18
- data/lib/algolia/models/analytics/daily_purchase_rates.rb +0 -14
- data/lib/algolia/models/analytics/daily_searches_no_clicks.rb +0 -14
- data/lib/algolia/models/analytics/daily_searches_no_results.rb +0 -14
- data/lib/algolia/models/analytics/get_add_to_cart_rate_response.rb +0 -28
- data/lib/algolia/models/analytics/get_average_click_position_response.rb +0 -24
- data/lib/algolia/models/analytics/get_click_positions_response.rb +0 -18
- data/lib/algolia/models/analytics/get_click_through_rate_response.rb +0 -28
- data/lib/algolia/models/analytics/get_conversion_rate_response.rb +0 -28
- data/lib/algolia/models/analytics/get_no_click_rate_response.rb +0 -32
- data/lib/algolia/models/analytics/get_no_results_rate_response.rb +0 -18
- data/lib/algolia/models/analytics/get_purchase_rate_response.rb +0 -14
- data/lib/algolia/models/analytics/top_hit_with_analytics.rb +0 -56
- data/lib/algolia/models/analytics/top_hit_with_revenue_analytics.rb +0 -98
- data/lib/algolia/models/analytics/top_search_with_analytics.rb +0 -90
- data/lib/algolia/models/analytics/top_search_with_revenue_analytics.rb +0 -132
- data/lib/algolia/models/ingestion/event.rb +1 -25
- data/lib/algolia/models/ingestion/pagination.rb +0 -60
- data/lib/algolia/models/ingestion/run.rb +0 -18
- data/lib/algolia/models/ingestion/source_csv.rb +0 -21
- data/lib/algolia/models/ingestion/task.rb +0 -18
- data/lib/algolia/models/ingestion/task_create.rb +0 -18
- data/lib/algolia/models/ingestion/task_create_v1.rb +0 -18
- data/lib/algolia/models/ingestion/task_update.rb +0 -18
- data/lib/algolia/models/ingestion/task_update_v1.rb +0 -18
- data/lib/algolia/models/ingestion/task_v1.rb +0 -18
- data/lib/algolia/models/ingestion/transformation.rb +1 -1
- data/lib/algolia/models/ingestion/transformation_create.rb +1 -1
- data/lib/algolia/models/insights/added_to_cart_object_ids.rb +0 -123
- data/lib/algolia/models/insights/added_to_cart_object_ids_after_search.rb +0 -149
- data/lib/algolia/models/insights/clicked_filters.rb +0 -105
- data/lib/algolia/models/insights/clicked_object_ids.rb +0 -105
- data/lib/algolia/models/insights/clicked_object_ids_after_search.rb +0 -149
- data/lib/algolia/models/insights/converted_filters.rb +0 -105
- data/lib/algolia/models/insights/converted_object_ids.rb +0 -105
- data/lib/algolia/models/insights/converted_object_ids_after_search.rb +0 -131
- data/lib/algolia/models/insights/insights_events.rb +0 -18
- data/lib/algolia/models/insights/object_data_after_search.rb +0 -26
- data/lib/algolia/models/insights/purchased_object_ids.rb +0 -123
- data/lib/algolia/models/insights/purchased_object_ids_after_search.rb +0 -123
- data/lib/algolia/models/insights/viewed_filters.rb +0 -105
- data/lib/algolia/models/insights/viewed_object_ids.rb +0 -105
- data/lib/algolia/models/personalization/personalization_strategy_params.rb +0 -18
- data/lib/algolia/models/query-suggestions/configuration.rb +0 -17
- data/lib/algolia/models/query-suggestions/configuration_response.rb +0 -17
- data/lib/algolia/models/query-suggestions/configuration_with_index.rb +0 -17
- data/lib/algolia/models/query-suggestions/source_index.rb +0 -28
- data/lib/algolia/models/recommend/banner_image.rb +4 -2
- data/lib/algolia/models/recommend/bought_together_query.rb +0 -36
- data/lib/algolia/models/recommend/condition.rb +0 -15
- data/lib/algolia/models/recommend/consequence.rb +0 -28
- data/lib/algolia/models/recommend/fallback_params.rb +3 -95
- data/lib/algolia/models/recommend/looking_similar_query.rb +0 -36
- data/lib/algolia/models/recommend/promote_consequence_object.rb +0 -14
- data/lib/algolia/models/recommend/ranking_info.rb +0 -112
- data/lib/algolia/models/recommend/recommend_hit.rb +0 -20
- data/lib/algolia/models/recommend/recommend_search_params.rb +3 -95
- data/lib/algolia/models/recommend/recommendations_results.rb +13 -61
- data/lib/algolia/models/recommend/recommended_for_you_query.rb +0 -36
- data/lib/algolia/models/recommend/related_query.rb +0 -36
- data/lib/algolia/models/recommend/search_recommend_rules_params.rb +2 -52
- data/lib/algolia/models/recommend/search_recommend_rules_response.rb +0 -14
- data/lib/algolia/models/recommend/trending_facet_hit.rb +0 -20
- data/lib/algolia/models/recommend/trending_facets_query.rb +0 -36
- data/lib/algolia/models/recommend/trending_items_query.rb +0 -36
- data/lib/algolia/models/recommend/widgets.rb +5 -2
- data/lib/algolia/models/search/banner_image.rb +4 -2
- data/lib/algolia/models/search/browse_params_object.rb +1 -129
- data/lib/algolia/models/search/browse_response.rb +13 -61
- data/lib/algolia/models/search/condition.rb +0 -15
- data/lib/algolia/models/search/consequence.rb +0 -28
- data/lib/algolia/models/search/consequence_params.rb +1 -129
- data/lib/algolia/models/search/get_api_key_response.rb +2 -0
- data/lib/algolia/models/search/get_objects_response.rb +0 -2
- data/lib/algolia/models/search/index_settings.rb +3 -81
- data/lib/algolia/models/search/log.rb +0 -34
- data/lib/algolia/models/search/promote_object_ids.rb +0 -14
- data/lib/algolia/models/search/ranking_info.rb +0 -112
- data/lib/algolia/models/search/rule.rb +0 -18
- data/lib/algolia/models/search/search_dictionary_entries_params.rb +0 -32
- data/lib/algolia/models/search/search_dictionary_entries_response.rb +1 -15
- data/lib/algolia/models/search/search_for_facet_values_request.rb +0 -14
- data/lib/algolia/models/search/search_for_facets.rb +1 -129
- data/lib/algolia/models/search/search_for_hits.rb +1 -129
- data/lib/algolia/models/search/search_params_object.rb +1 -129
- data/lib/algolia/models/search/search_response.rb +13 -61
- data/lib/algolia/models/search/search_rules_params.rb +2 -34
- data/lib/algolia/models/search/search_synonyms_params.rb +0 -32
- data/lib/algolia/models/search/search_user_ids_params.rb +0 -32
- data/lib/algolia/models/search/search_user_ids_response.rb +1 -33
- data/lib/algolia/models/search/settings_response.rb +3 -81
- data/lib/algolia/models/search/user_hit.rb +0 -15
- data/lib/algolia/models/search/user_id.rb +0 -15
- data/lib/algolia/models/search/widgets.rb +5 -2
- data/lib/algolia/user_agent.rb +8 -2
- data/lib/algolia/version.rb +1 -1
- metadata +2 -11
- data/lib/algolia/models/query-suggestions/base_query_suggestions_configuration_response.rb +0 -230
- data/lib/algolia/models/query-suggestions/base_query_suggestions_configuration_with_index.rb +0 -212
- data/lib/algolia/models/query-suggestions/get_config_status200_response.rb +0 -252
- data/lib/algolia/models/query-suggestions/get_log_file200_response.rb +0 -263
- data/lib/algolia/models/query-suggestions/query_suggestions_configuration.rb +0 -276
- data/lib/algolia/models/query-suggestions/query_suggestions_configuration_response.rb +0 -316
- data/lib/algolia/models/query-suggestions/query_suggestions_configuration_with_index.rb +0 -295
- data/lib/algolia/models/recommend/banners.rb +0 -209
- data/lib/algolia/models/search/banners.rb +0 -209
@@ -41,6 +41,14 @@ module Algolia
|
|
41
41
|
# @return [void]
|
42
42
|
def set_client_api_key(api_key)
|
43
43
|
@api_client.set_client_api_key(api_key)
|
44
|
+
|
45
|
+
self
|
46
|
+
end
|
47
|
+
|
48
|
+
def add_user_agent_segment(segment, version = nil)
|
49
|
+
@api_client.config.add_user_agent_segment(segment, version)
|
50
|
+
|
51
|
+
self
|
44
52
|
end
|
45
53
|
|
46
54
|
# Creates a new API key with specific permissions and restrictions.
|
@@ -87,7 +95,7 @@ module Algolia
|
|
87
95
|
@api_client.deserialize(response.body, request_options[:debug_return_type] || "Search::AddApiKeyResponse")
|
88
96
|
end
|
89
97
|
|
90
|
-
# If a record with the specified object ID exists, the existing record is replaced. Otherwise, a new record is added to the index. To update _some_ attributes of an existing record, use the [
|
98
|
+
# If a record with the specified object ID exists, the existing record is replaced. Otherwise, a new record is added to the index. To update _some_ attributes of an existing record, use the [`partial` operation](#tag/Records/operation/partialUpdateObject) instead. To add, update, or replace multiple records, use the [`batch` operation](#tag/Records/operation/batch).
|
91
99
|
#
|
92
100
|
# Required API Key ACLs:
|
93
101
|
# - addObject
|
@@ -206,15 +214,6 @@ module Algolia
|
|
206
214
|
if @api_client.config.client_side_validation && x_algolia_user_id.nil?
|
207
215
|
raise ArgumentError, "Parameter `x_algolia_user_id` is required when calling `assign_user_id`."
|
208
216
|
end
|
209
|
-
|
210
|
-
pattern = /^[a-zA-Z0-9 \-*.]+$/
|
211
|
-
if @api_client.config.client_side_validation && x_algolia_user_id !~ pattern
|
212
|
-
raise(
|
213
|
-
ArgumentError,
|
214
|
-
"invalid value for 'x_algolia_user_id' when calling SearchClient.assign_user_id, must conform to the pattern #{pattern}."
|
215
|
-
)
|
216
|
-
end
|
217
|
-
|
218
217
|
# verify the required parameter 'assign_user_id_params' is set
|
219
218
|
if @api_client.config.client_side_validation && assign_user_id_params.nil?
|
220
219
|
raise ArgumentError, "Parameter `assign_user_id_params` is required when calling `assign_user_id`."
|
@@ -253,7 +252,7 @@ module Algolia
|
|
253
252
|
@api_client.deserialize(response.body, request_options[:debug_return_type] || "Search::CreatedAtResponse")
|
254
253
|
end
|
255
254
|
|
256
|
-
# Adds, updates, or deletes records in one index with a single API request. Batching index updates reduces latency and increases data integrity. - Actions are applied in the order they
|
255
|
+
# Adds, updates, or deletes records in one index with a single API request. Batching index updates reduces latency and increases data integrity. - Actions are applied in the order they're specified. - Actions are equivalent to the individual API requests of the same name.
|
257
256
|
|
258
257
|
# @param index_name [String] Name of the index on which to perform the operation. (required)
|
259
258
|
# @param batch_write_params [BatchWriteParams] (required)
|
@@ -299,7 +298,7 @@ module Algolia
|
|
299
298
|
@api_client.deserialize(response.body, request_options[:debug_return_type] || "Search::BatchResponse")
|
300
299
|
end
|
301
300
|
|
302
|
-
# Assigns multiple user IDs to a cluster. **You can
|
301
|
+
# Assigns multiple user IDs to a cluster. **You can't move users with this operation**.
|
303
302
|
#
|
304
303
|
# Required API Key ACLs:
|
305
304
|
# - admin
|
@@ -312,15 +311,6 @@ module Algolia
|
|
312
311
|
if @api_client.config.client_side_validation && x_algolia_user_id.nil?
|
313
312
|
raise ArgumentError, "Parameter `x_algolia_user_id` is required when calling `batch_assign_user_ids`."
|
314
313
|
end
|
315
|
-
|
316
|
-
pattern = /^[a-zA-Z0-9 \-*.]+$/
|
317
|
-
if @api_client.config.client_side_validation && x_algolia_user_id !~ pattern
|
318
|
-
raise(
|
319
|
-
ArgumentError,
|
320
|
-
"invalid value for 'x_algolia_user_id' when calling SearchClient.batch_assign_user_ids, must conform to the pattern #{pattern}."
|
321
|
-
)
|
322
|
-
end
|
323
|
-
|
324
314
|
# verify the required parameter 'batch_assign_user_ids_params' is set
|
325
315
|
if @api_client.config.client_side_validation && batch_assign_user_ids_params.nil?
|
326
316
|
raise(
|
@@ -422,7 +412,7 @@ module Algolia
|
|
422
412
|
@api_client.deserialize(response.body, request_options[:debug_return_type] || "Search::UpdatedAtResponse")
|
423
413
|
end
|
424
414
|
|
425
|
-
# Retrieves records from an index, up to 1,000 per request. While searching retrieves _hits_ (records augmented with attributes for highlighting and ranking details), browsing _just_ returns matching records. This can be useful if you want to export your indices. - The Analytics API doesn
|
415
|
+
# Retrieves records from an index, up to 1,000 per request. While searching retrieves _hits_ (records augmented with attributes for highlighting and ranking details), browsing _just_ returns matching records. This can be useful if you want to export your indices. - The Analytics API doesn't collect data when using `browse`. - Records are ranked by attributes and custom ranking. - There's no ranking for: typo-tolerance, number of matched words, proximity, geo distance. Browse requests automatically apply these settings: - `advancedSyntax`: `false` - `attributesToHighlight`: `[]` - `attributesToSnippet`: `[]` - `distinct`: `false` - `enablePersonalization`: `false` - `enableRules`: `false` - `facets`: `[]` - `getRankingInfo`: `false` - `ignorePlurals`: `false` - `optionalFilters`: `[]` - `typoTolerance`: `true` or `false` (`min` and `strict` evaluate to `true`) If you send these parameters with your browse requests, they'll be ignored.
|
426
416
|
#
|
427
417
|
# Required API Key ACLs:
|
428
418
|
# - browse
|
@@ -449,7 +439,7 @@ module Algolia
|
|
449
439
|
:header_params => header_params,
|
450
440
|
:query_params => query_params,
|
451
441
|
:body => post_body,
|
452
|
-
:use_read_transporter =>
|
442
|
+
:use_read_transporter => true
|
453
443
|
)
|
454
444
|
|
455
445
|
@api_client.call_api(:POST, path, new_options)
|
@@ -608,7 +598,7 @@ module Algolia
|
|
608
598
|
|
609
599
|
# This method allow you to send requests to the Algolia REST API.
|
610
600
|
|
611
|
-
# @param path [String] Path of the endpoint, anything after
|
601
|
+
# @param path [String] Path of the endpoint, anything after \"/1\" must be specified. (required)
|
612
602
|
# @param parameters [Hash<String, Object>] Query parameters to apply to the current query.
|
613
603
|
# @param request_options: The request options to send along with the query, they will be merged with the transporter base parameters (headers, query params, timeouts, etc.). (optional)
|
614
604
|
# @return [Http::Response] the response
|
@@ -640,7 +630,7 @@ module Algolia
|
|
640
630
|
|
641
631
|
# This method allow you to send requests to the Algolia REST API.
|
642
632
|
|
643
|
-
# @param path [String] Path of the endpoint, anything after
|
633
|
+
# @param path [String] Path of the endpoint, anything after \"/1\" must be specified. (required)
|
644
634
|
# @param parameters [Hash<String, Object>] Query parameters to apply to the current query.
|
645
635
|
# @param request_options: The request options to send along with the query, they will be merged with the transporter base parameters (headers, query params, timeouts, etc.). (optional)
|
646
636
|
# @return [Object]
|
@@ -651,7 +641,7 @@ module Algolia
|
|
651
641
|
|
652
642
|
# This method allow you to send requests to the Algolia REST API.
|
653
643
|
|
654
|
-
# @param path [String] Path of the endpoint, anything after
|
644
|
+
# @param path [String] Path of the endpoint, anything after \"/1\" must be specified. (required)
|
655
645
|
# @param parameters [Hash<String, Object>] Query parameters to apply to the current query.
|
656
646
|
# @param request_options: The request options to send along with the query, they will be merged with the transporter base parameters (headers, query params, timeouts, etc.). (optional)
|
657
647
|
# @return [Http::Response] the response
|
@@ -683,7 +673,7 @@ module Algolia
|
|
683
673
|
|
684
674
|
# This method allow you to send requests to the Algolia REST API.
|
685
675
|
|
686
|
-
# @param path [String] Path of the endpoint, anything after
|
676
|
+
# @param path [String] Path of the endpoint, anything after \"/1\" must be specified. (required)
|
687
677
|
# @param parameters [Hash<String, Object>] Query parameters to apply to the current query.
|
688
678
|
# @param request_options: The request options to send along with the query, they will be merged with the transporter base parameters (headers, query params, timeouts, etc.). (optional)
|
689
679
|
# @return [Object]
|
@@ -694,7 +684,7 @@ module Algolia
|
|
694
684
|
|
695
685
|
# This method allow you to send requests to the Algolia REST API.
|
696
686
|
|
697
|
-
# @param path [String] Path of the endpoint, anything after
|
687
|
+
# @param path [String] Path of the endpoint, anything after \"/1\" must be specified. (required)
|
698
688
|
# @param parameters [Hash<String, Object>] Query parameters to apply to the current query.
|
699
689
|
# @param body [Object] Parameters to send with the custom request.
|
700
690
|
# @param request_options: The request options to send along with the query, they will be merged with the transporter base parameters (headers, query params, timeouts, etc.). (optional)
|
@@ -727,7 +717,7 @@ module Algolia
|
|
727
717
|
|
728
718
|
# This method allow you to send requests to the Algolia REST API.
|
729
719
|
|
730
|
-
# @param path [String] Path of the endpoint, anything after
|
720
|
+
# @param path [String] Path of the endpoint, anything after \"/1\" must be specified. (required)
|
731
721
|
# @param parameters [Hash<String, Object>] Query parameters to apply to the current query.
|
732
722
|
# @param body [Object] Parameters to send with the custom request.
|
733
723
|
# @param request_options: The request options to send along with the query, they will be merged with the transporter base parameters (headers, query params, timeouts, etc.). (optional)
|
@@ -739,7 +729,7 @@ module Algolia
|
|
739
729
|
|
740
730
|
# This method allow you to send requests to the Algolia REST API.
|
741
731
|
|
742
|
-
# @param path [String] Path of the endpoint, anything after
|
732
|
+
# @param path [String] Path of the endpoint, anything after \"/1\" must be specified. (required)
|
743
733
|
# @param parameters [Hash<String, Object>] Query parameters to apply to the current query.
|
744
734
|
# @param body [Object] Parameters to send with the custom request.
|
745
735
|
# @param request_options: The request options to send along with the query, they will be merged with the transporter base parameters (headers, query params, timeouts, etc.). (optional)
|
@@ -772,7 +762,7 @@ module Algolia
|
|
772
762
|
|
773
763
|
# This method allow you to send requests to the Algolia REST API.
|
774
764
|
|
775
|
-
# @param path [String] Path of the endpoint, anything after
|
765
|
+
# @param path [String] Path of the endpoint, anything after \"/1\" must be specified. (required)
|
776
766
|
# @param parameters [Hash<String, Object>] Query parameters to apply to the current query.
|
777
767
|
# @param body [Object] Parameters to send with the custom request.
|
778
768
|
# @param request_options: The request options to send along with the query, they will be merged with the transporter base parameters (headers, query params, timeouts, etc.). (optional)
|
@@ -826,7 +816,7 @@ module Algolia
|
|
826
816
|
@api_client.deserialize(response.body, request_options[:debug_return_type] || "Search::DeleteApiKeyResponse")
|
827
817
|
end
|
828
818
|
|
829
|
-
# This operation doesn
|
819
|
+
# This operation doesn't accept empty queries or filters. It's more efficient to get a list of object IDs with the [`browse` operation](#tag/Search/operation/browse), and then delete the records using the [`batch` operation](#tag/Records/operation/batch).
|
830
820
|
#
|
831
821
|
# Required API Key ACLs:
|
832
822
|
# - deleteIndex
|
@@ -876,7 +866,7 @@ module Algolia
|
|
876
866
|
@api_client.deserialize(response.body, request_options[:debug_return_type] || "Search::DeletedAtResponse")
|
877
867
|
end
|
878
868
|
|
879
|
-
# Deletes an index and all its settings. - Deleting an index doesn
|
869
|
+
# Deletes an index and all its settings. - Deleting an index doesn't delete its analytics data. - If you try to delete a non-existing index, the operation is ignored without warning. - If the index you want to delete has replica indices, the replicas become independent indices. - If the index you want to delete is a replica index, you must first unlink it from its primary index before you can delete it. For more information, see [Delete replica indices](https://www.algolia.com/doc/guides/managing-results/refine-results/sorting/how-to/deleting-replicas/).
|
880
870
|
#
|
881
871
|
# Required API Key ACLs:
|
882
872
|
# - deleteIndex
|
@@ -920,7 +910,7 @@ module Algolia
|
|
920
910
|
@api_client.deserialize(response.body, request_options[:debug_return_type] || "Search::DeletedAtResponse")
|
921
911
|
end
|
922
912
|
|
923
|
-
# Deletes a record by its object ID. To delete more than one record, use the [
|
913
|
+
# Deletes a record by its object ID. To delete more than one record, use the [`batch` operation](#tag/Records/operation/batch). To delete records matching a query, use the [`deleteByQuery` operation](#tag/Records/operation/deleteBy).
|
924
914
|
#
|
925
915
|
# Required API Key ACLs:
|
926
916
|
# - deleteObject
|
@@ -973,7 +963,7 @@ module Algolia
|
|
973
963
|
@api_client.deserialize(response.body, request_options[:debug_return_type] || "Search::DeletedAtResponse")
|
974
964
|
end
|
975
965
|
|
976
|
-
# Deletes a rule by its ID. To find the object ID for rules, use the [
|
966
|
+
# Deletes a rule by its ID. To find the object ID for rules, use the [`search` operation](#tag/Rules/operation/searchRules).
|
977
967
|
#
|
978
968
|
# Required API Key ACLs:
|
979
969
|
# - editSettings
|
@@ -1072,7 +1062,7 @@ module Algolia
|
|
1072
1062
|
@api_client.deserialize(response.body, request_options[:debug_return_type] || "Search::DeleteSourceResponse")
|
1073
1063
|
end
|
1074
1064
|
|
1075
|
-
# Deletes a synonym by its ID. To find the object IDs of your synonyms, use the [
|
1065
|
+
# Deletes a synonym by its ID. To find the object IDs of your synonyms, use the [`search` operation](#tag/Synonyms/operation/searchSynonyms).
|
1076
1066
|
#
|
1077
1067
|
# Required API Key ACLs:
|
1078
1068
|
# - editSettings
|
@@ -1127,7 +1117,7 @@ module Algolia
|
|
1127
1117
|
@api_client.deserialize(response.body, request_options[:debug_return_type] || "Search::DeletedAtResponse")
|
1128
1118
|
end
|
1129
1119
|
|
1130
|
-
# Gets the permissions and restrictions of an API key. When authenticating with the admin API key, you can request information for any of your application
|
1120
|
+
# Gets the permissions and restrictions of an API key. When authenticating with the admin API key, you can request information for any of your application's keys. When authenticating with other API keys, you can only retrieve information for that key, with the description replaced by `<redacted>`.
|
1131
1121
|
|
1132
1122
|
# @param key [String] API key. (required)
|
1133
1123
|
# @param request_options: The request options to send along with the query, they will be merged with the transporter base parameters (headers, query params, timeouts, etc.). (optional)
|
@@ -1245,7 +1235,7 @@ module Algolia
|
|
1245
1235
|
# @return [Hash<String, Languages>]
|
1246
1236
|
def get_dictionary_languages(request_options = {})
|
1247
1237
|
response = get_dictionary_languages_with_http_info(request_options)
|
1248
|
-
@api_client.deserialize(response.body, request_options[:debug_return_type] || "
|
1238
|
+
@api_client.deserialize(response.body, request_options[:debug_return_type] || "Hash<String, Languages>")
|
1249
1239
|
end
|
1250
1240
|
|
1251
1241
|
# Retrieves the languages for which standard dictionary entries are turned off.
|
@@ -1288,7 +1278,7 @@ module Algolia
|
|
1288
1278
|
)
|
1289
1279
|
end
|
1290
1280
|
|
1291
|
-
# The request must be authenticated by an API key with the [
|
1281
|
+
# The request must be authenticated by an API key with the [`logs` ACL](https://www.algolia.com/doc/guides/security/api-keys/#access-control-list-acl). - Logs are held for the last seven days. - Up to 1,000 API requests per server are logged. - This request counts towards your [operations quota](https://support.algolia.com/hc/en-us/articles/4406981829777-How-does-Algolia-count-records-and-operations-) but doesn't appear in the logs itself.
|
1292
1282
|
#
|
1293
1283
|
# Required API Key ACLs:
|
1294
1284
|
# - logs
|
@@ -1299,13 +1289,6 @@ module Algolia
|
|
1299
1289
|
# @param request_options: The request options to send along with the query, they will be merged with the transporter base parameters (headers, query params, timeouts, etc.). (optional)
|
1300
1290
|
# @return [Http::Response] the response
|
1301
1291
|
def get_logs_with_http_info(offset = nil, length = nil, index_name = nil, type = nil, request_options = {})
|
1302
|
-
if @api_client.config.client_side_validation && !length.nil? && length > 1000
|
1303
|
-
raise(
|
1304
|
-
ArgumentError,
|
1305
|
-
"invalid value for \"\"length\"\" when calling SearchClient.get_logs, must be smaller than or equal to 1000."
|
1306
|
-
)
|
1307
|
-
end
|
1308
|
-
|
1309
1292
|
path = "/1/logs"
|
1310
1293
|
query_params = {}
|
1311
1294
|
query_params[:offset] = offset unless offset.nil?
|
@@ -1344,13 +1327,13 @@ module Algolia
|
|
1344
1327
|
@api_client.deserialize(response.body, request_options[:debug_return_type] || "Search::GetLogsResponse")
|
1345
1328
|
end
|
1346
1329
|
|
1347
|
-
# Retrieves one record by its object ID. To retrieve more than one record, use the [
|
1330
|
+
# Retrieves one record by its object ID. To retrieve more than one record, use the [`objects` operation](#tag/Records/operation/getObjects).
|
1348
1331
|
#
|
1349
1332
|
# Required API Key ACLs:
|
1350
1333
|
# - search
|
1351
1334
|
# @param index_name [String] Name of the index on which to perform the operation. (required)
|
1352
1335
|
# @param object_id [String] Unique record identifier. (required)
|
1353
|
-
# @param attributes_to_retrieve [Array<String>] Attributes to include with the records in the response. This is useful to reduce the size of the API response. By default, all retrievable attributes are returned.
|
1336
|
+
# @param attributes_to_retrieve [Array<String>] Attributes to include with the records in the response. This is useful to reduce the size of the API response. By default, all retrievable attributes are returned. `objectID` is always retrieved. Attributes included in `unretrievableAttributes` won't be retrieved unless the request is authenticated with the admin API key.
|
1354
1337
|
# @param request_options: The request options to send along with the query, they will be merged with the transporter base parameters (headers, query params, timeouts, etc.). (optional)
|
1355
1338
|
# @return [Http::Response] the response
|
1356
1339
|
def get_object_with_http_info(index_name, object_id, attributes_to_retrieve = nil, request_options = {})
|
@@ -1395,12 +1378,12 @@ module Algolia
|
|
1395
1378
|
# - search
|
1396
1379
|
# @param index_name [String] Name of the index on which to perform the operation. (required)
|
1397
1380
|
# @param object_id [String] Unique record identifier. (required)
|
1398
|
-
# @param attributes_to_retrieve [Array<String>] Attributes to include with the records in the response. This is useful to reduce the size of the API response. By default, all retrievable attributes are returned.
|
1381
|
+
# @param attributes_to_retrieve [Array<String>] Attributes to include with the records in the response. This is useful to reduce the size of the API response. By default, all retrievable attributes are returned. `objectID` is always retrieved. Attributes included in `unretrievableAttributes` won't be retrieved unless the request is authenticated with the admin API key.
|
1399
1382
|
# @param request_options: The request options to send along with the query, they will be merged with the transporter base parameters (headers, query params, timeouts, etc.). (optional)
|
1400
1383
|
# @return [Object]
|
1401
1384
|
def get_object(index_name, object_id, attributes_to_retrieve = nil, request_options = {})
|
1402
1385
|
response = get_object_with_http_info(index_name, object_id, attributes_to_retrieve, request_options)
|
1403
|
-
@api_client.deserialize(response.body, request_options[:debug_return_type] || "
|
1386
|
+
@api_client.deserialize(response.body, request_options[:debug_return_type] || "Object")
|
1404
1387
|
end
|
1405
1388
|
|
1406
1389
|
# Retrieves one or more records, potentially from different indices. Records are returned in the same order as the requests.
|
@@ -1447,7 +1430,7 @@ module Algolia
|
|
1447
1430
|
@api_client.deserialize(response.body, request_options[:debug_return_type] || "Search::GetObjectsResponse")
|
1448
1431
|
end
|
1449
1432
|
|
1450
|
-
# Retrieves a rule by its ID. To find the object ID of rules, use the [
|
1433
|
+
# Retrieves a rule by its ID. To find the object ID of rules, use the [`search` operation](#tag/Rules/operation/searchRules).
|
1451
1434
|
#
|
1452
1435
|
# Required API Key ACLs:
|
1453
1436
|
# - settings
|
@@ -1580,7 +1563,7 @@ module Algolia
|
|
1580
1563
|
@api_client.deserialize(response.body, request_options[:debug_return_type] || "Array<Search::Source>")
|
1581
1564
|
end
|
1582
1565
|
|
1583
|
-
# Retrieves a synonym by its ID. To find the object IDs for your synonyms, use the [
|
1566
|
+
# Retrieves a synonym by its ID. To find the object IDs for your synonyms, use the [`search` operation](#tag/Synonyms/operation/searchSynonyms).
|
1584
1567
|
#
|
1585
1568
|
# Required API Key ACLs:
|
1586
1569
|
# - settings
|
@@ -1632,7 +1615,7 @@ module Algolia
|
|
1632
1615
|
@api_client.deserialize(response.body, request_options[:debug_return_type] || "Search::SynonymHit")
|
1633
1616
|
end
|
1634
1617
|
|
1635
|
-
# Checks the status of a given task. Indexing tasks are asynchronous. When you add, update, or delete records or indices, a task is created on a queue and completed depending on the load on the server. The indexing tasks
|
1618
|
+
# Checks the status of a given task. Indexing tasks are asynchronous. When you add, update, or delete records or indices, a task is created on a queue and completed depending on the load on the server. The indexing tasks' responses include a task ID that you can use to check the status.
|
1636
1619
|
#
|
1637
1620
|
# Required API Key ACLs:
|
1638
1621
|
# - addObject
|
@@ -1684,7 +1667,7 @@ module Algolia
|
|
1684
1667
|
@api_client.deserialize(response.body, request_options[:debug_return_type] || "Search::GetTaskResponse")
|
1685
1668
|
end
|
1686
1669
|
|
1687
|
-
# Get the IDs of the 10 users with the highest number of records per cluster. Since it can take a few seconds to get the data from the different clusters, the response isn
|
1670
|
+
# Get the IDs of the 10 users with the highest number of records per cluster. Since it can take a few seconds to get the data from the different clusters, the response isn't real-time.
|
1688
1671
|
#
|
1689
1672
|
# Required API Key ACLs:
|
1690
1673
|
# - admin
|
@@ -1721,7 +1704,7 @@ module Algolia
|
|
1721
1704
|
@api_client.deserialize(response.body, request_options[:debug_return_type] || "Search::GetTopUserIdsResponse")
|
1722
1705
|
end
|
1723
1706
|
|
1724
|
-
# Returns the user ID data stored in the mapping. Since it can take a few seconds to get the data from the different clusters, the response isn
|
1707
|
+
# Returns the user ID data stored in the mapping. Since it can take a few seconds to get the data from the different clusters, the response isn't real-time.
|
1725
1708
|
#
|
1726
1709
|
# Required API Key ACLs:
|
1727
1710
|
# - admin
|
@@ -1734,14 +1717,6 @@ module Algolia
|
|
1734
1717
|
raise ArgumentError, "Parameter `user_id` is required when calling `get_user_id`."
|
1735
1718
|
end
|
1736
1719
|
|
1737
|
-
pattern = /^[a-zA-Z0-9 \-*.]+$/
|
1738
|
-
if @api_client.config.client_side_validation && user_id !~ pattern
|
1739
|
-
raise(
|
1740
|
-
ArgumentError,
|
1741
|
-
"invalid value for 'user_id' when calling SearchClient.get_user_id, must conform to the pattern #{pattern}."
|
1742
|
-
)
|
1743
|
-
end
|
1744
|
-
|
1745
1720
|
path = "/1/clusters/mapping/{userID}".sub("{" + "userID" + "}", Transport.encode_uri(user_id.to_s))
|
1746
1721
|
query_params = {}
|
1747
1722
|
query_params = query_params.merge(request_options[:query_params]) unless request_options[:query_params].nil?
|
@@ -1777,7 +1752,7 @@ module Algolia
|
|
1777
1752
|
#
|
1778
1753
|
# Required API Key ACLs:
|
1779
1754
|
# - admin
|
1780
|
-
# @param get_clusters [Boolean] Whether to include the cluster
|
1755
|
+
# @param get_clusters [Boolean] Whether to include the cluster's pending mapping state in the response.
|
1781
1756
|
# @param request_options: The request options to send along with the query, they will be merged with the transporter base parameters (headers, query params, timeouts, etc.). (optional)
|
1782
1757
|
# @return [Http::Response] the response
|
1783
1758
|
def has_pending_mappings_with_http_info(get_clusters = nil, request_options = {})
|
@@ -1805,7 +1780,7 @@ module Algolia
|
|
1805
1780
|
#
|
1806
1781
|
# Required API Key ACLs:
|
1807
1782
|
# - admin
|
1808
|
-
# @param get_clusters [Boolean] Whether to include the cluster
|
1783
|
+
# @param get_clusters [Boolean] Whether to include the cluster's pending mapping state in the response.
|
1809
1784
|
# @param request_options: The request options to send along with the query, they will be merged with the transporter base parameters (headers, query params, timeouts, etc.). (optional)
|
1810
1785
|
# @return [HasPendingMappingsResponse]
|
1811
1786
|
def has_pending_mappings(get_clusters = nil, request_options = {})
|
@@ -1894,18 +1869,11 @@ module Algolia
|
|
1894
1869
|
#
|
1895
1870
|
# Required API Key ACLs:
|
1896
1871
|
# - listIndexes
|
1897
|
-
# @param page [Integer] Requested page of the API response. If
|
1872
|
+
# @param page [Integer] Requested page of the API response. If `null`, the API response is not paginated.
|
1898
1873
|
# @param hits_per_page [Integer] Number of hits per page. (default to 100)
|
1899
1874
|
# @param request_options: The request options to send along with the query, they will be merged with the transporter base parameters (headers, query params, timeouts, etc.). (optional)
|
1900
1875
|
# @return [Http::Response] the response
|
1901
1876
|
def list_indices_with_http_info(page = nil, hits_per_page = nil, request_options = {})
|
1902
|
-
if @api_client.config.client_side_validation && !page.nil? && page < 0
|
1903
|
-
raise(
|
1904
|
-
ArgumentError,
|
1905
|
-
"invalid value for \"\"page\"\" when calling SearchClient.list_indices, must be greater than or equal to 0."
|
1906
|
-
)
|
1907
|
-
end
|
1908
|
-
|
1909
1877
|
path = "/1/indexes"
|
1910
1878
|
query_params = {}
|
1911
1879
|
query_params[:page] = page unless page.nil?
|
@@ -1931,7 +1899,7 @@ module Algolia
|
|
1931
1899
|
#
|
1932
1900
|
# Required API Key ACLs:
|
1933
1901
|
# - listIndexes
|
1934
|
-
# @param page [Integer] Requested page of the API response. If
|
1902
|
+
# @param page [Integer] Requested page of the API response. If `null`, the API response is not paginated.
|
1935
1903
|
# @param hits_per_page [Integer] Number of hits per page. (default to 100)
|
1936
1904
|
# @param request_options: The request options to send along with the query, they will be merged with the transporter base parameters (headers, query params, timeouts, etc.). (optional)
|
1937
1905
|
# @return [ListIndicesResponse]
|
@@ -1940,22 +1908,15 @@ module Algolia
|
|
1940
1908
|
@api_client.deserialize(response.body, request_options[:debug_return_type] || "Search::ListIndicesResponse")
|
1941
1909
|
end
|
1942
1910
|
|
1943
|
-
# Lists the userIDs assigned to a multi-cluster application. Since it can take a few seconds to get the data from the different clusters, the response isn
|
1911
|
+
# Lists the userIDs assigned to a multi-cluster application. Since it can take a few seconds to get the data from the different clusters, the response isn't real-time.
|
1944
1912
|
#
|
1945
1913
|
# Required API Key ACLs:
|
1946
1914
|
# - admin
|
1947
|
-
# @param page [Integer] Requested page of the API response. If
|
1915
|
+
# @param page [Integer] Requested page of the API response. If `null`, the API response is not paginated.
|
1948
1916
|
# @param hits_per_page [Integer] Number of hits per page. (default to 100)
|
1949
1917
|
# @param request_options: The request options to send along with the query, they will be merged with the transporter base parameters (headers, query params, timeouts, etc.). (optional)
|
1950
1918
|
# @return [Http::Response] the response
|
1951
1919
|
def list_user_ids_with_http_info(page = nil, hits_per_page = nil, request_options = {})
|
1952
|
-
if @api_client.config.client_side_validation && !page.nil? && page < 0
|
1953
|
-
raise(
|
1954
|
-
ArgumentError,
|
1955
|
-
"invalid value for \"\"page\"\" when calling SearchClient.list_user_ids, must be greater than or equal to 0."
|
1956
|
-
)
|
1957
|
-
end
|
1958
|
-
|
1959
1920
|
path = "/1/clusters/mapping"
|
1960
1921
|
query_params = {}
|
1961
1922
|
query_params[:page] = page unless page.nil?
|
@@ -1981,7 +1942,7 @@ module Algolia
|
|
1981
1942
|
#
|
1982
1943
|
# Required API Key ACLs:
|
1983
1944
|
# - admin
|
1984
|
-
# @param page [Integer] Requested page of the API response. If
|
1945
|
+
# @param page [Integer] Requested page of the API response. If `null`, the API response is not paginated.
|
1985
1946
|
# @param hits_per_page [Integer] Number of hits per page. (default to 100)
|
1986
1947
|
# @param request_options: The request options to send along with the query, they will be merged with the transporter base parameters (headers, query params, timeouts, etc.). (optional)
|
1987
1948
|
# @return [ListUserIdsResponse]
|
@@ -2030,7 +1991,7 @@ module Algolia
|
|
2030
1991
|
@api_client.deserialize(response.body, request_options[:debug_return_type] || "Search::MultipleBatchResponse")
|
2031
1992
|
end
|
2032
1993
|
|
2033
|
-
# Copies or moves (renames) an index within the same Algolia application. - Existing destination indices are overwritten, except for their analytics data. - If the destination index doesn
|
1994
|
+
# Copies or moves (renames) an index within the same Algolia application. - Existing destination indices are overwritten, except for their analytics data. - If the destination index doesn't exist yet, it'll be created. **Copy** - Copying a source index that doesn't exist creates a new index with 0 records and default settings. - The API keys of the source index are merged with the existing keys in the destination index. - You can't copy the `enableReRanking`, `mode`, and `replicas` settings. - You can't copy to a destination index that already has replicas. - Be aware of the [size limits](https://www.algolia.com/doc/guides/scaling/algolia-service-limits/#application-record-and-index-limits). - Related guide: [Copy indices](https://www.algolia.com/doc/guides/sending-and-managing-data/manage-indices-and-apps/manage-indices/how-to/copy-indices/) **Move** - Moving a source index that doesn't exist is ignored without returning an error. - When moving an index, the analytics data keeps its original name, and a new set of analytics data is started for the new name. To access the original analytics in the dashboard, create an index with the original name. - If the destination index has replicas, moving will overwrite the existing index and copy the data to the replica indices. - Related guide: [Move indices](https://www.algolia.com/doc/guides/sending-and-managing-data/manage-indices-and-apps/manage-indices/how-to/move-indices/).
|
2034
1995
|
#
|
2035
1996
|
# Required API Key ACLs:
|
2036
1997
|
# - addObject
|
@@ -2080,14 +2041,14 @@ module Algolia
|
|
2080
2041
|
@api_client.deserialize(response.body, request_options[:debug_return_type] || "Search::UpdatedAtResponse")
|
2081
2042
|
end
|
2082
2043
|
|
2083
|
-
# Adds new attributes to a record, or updates existing ones. - If a record with the specified object ID doesn
|
2044
|
+
# Adds new attributes to a record, or updates existing ones. - If a record with the specified object ID doesn't exist, a new record is added to the index **if** `createIfNotExists` is true. - If the index doesn't exist yet, this method creates a new index. - You can use any first-level attribute but not nested attributes. If you specify a nested attribute, the engine treats it as a replacement for its first-level ancestor. To update an attribute without pushing the entire record, you can use these built-in operations. These operations can be helpful if you don't have access to your initial data. - Increment: increment a numeric attribute - Decrement: decrement a numeric attribute - Add: append a number or string element to an array attribute - Remove: remove all matching number or string elements from an array attribute made of numbers or strings - AddUnique: add a number or string element to an array attribute made of numbers or strings only if it's not already present - IncrementFrom: increment a numeric integer attribute only if the provided value matches the current value, and otherwise ignore the whole object update. For example, if you pass an IncrementFrom value of 2 for the version attribute, but the current value of the attribute is 1, the engine ignores the update. If the object doesn't exist, the engine only creates it if you pass an IncrementFrom value of 0. - IncrementSet: increment a numeric integer attribute only if the provided value is greater than the current value, and otherwise ignore the whole object update. For example, if you pass an IncrementSet value of 2 for the version attribute, and the current value of the attribute is 1, the engine updates the object. If the object doesn't exist yet, the engine only creates it if you pass an IncrementSet value greater than 0. You can specify an operation by providing an object with the attribute to update as the key and its value being an object with the following properties: - _operation: the operation to apply on the attribute - value: the right-hand side argument to the operation, for example, increment or decrement step, value to add or remove.
|
2084
2045
|
#
|
2085
2046
|
# Required API Key ACLs:
|
2086
2047
|
# - addObject
|
2087
2048
|
# @param index_name [String] Name of the index on which to perform the operation. (required)
|
2088
2049
|
# @param object_id [String] Unique record identifier. (required)
|
2089
2050
|
# @param attributes_to_update [Object] Attributes with their values. (required)
|
2090
|
-
# @param create_if_not_exists [Boolean] Whether to create a new record if it doesn
|
2051
|
+
# @param create_if_not_exists [Boolean] Whether to create a new record if it doesn't exist. (default to true)
|
2091
2052
|
# @param request_options: The request options to send along with the query, they will be merged with the transporter base parameters (headers, query params, timeouts, etc.). (optional)
|
2092
2053
|
# @return [Http::Response] the response
|
2093
2054
|
def partial_update_object_with_http_info(
|
@@ -2139,7 +2100,7 @@ module Algolia
|
|
2139
2100
|
# @param index_name [String] Name of the index on which to perform the operation. (required)
|
2140
2101
|
# @param object_id [String] Unique record identifier. (required)
|
2141
2102
|
# @param attributes_to_update [Object] Attributes with their values. (required)
|
2142
|
-
# @param create_if_not_exists [Boolean] Whether to create a new record if it doesn
|
2103
|
+
# @param create_if_not_exists [Boolean] Whether to create a new record if it doesn't exist. (default to true)
|
2143
2104
|
# @param request_options: The request options to send along with the query, they will be merged with the transporter base parameters (headers, query params, timeouts, etc.). (optional)
|
2144
2105
|
# @return [UpdatedAtWithObjectIdResponse]
|
2145
2106
|
def partial_update_object(
|
@@ -2175,14 +2136,6 @@ module Algolia
|
|
2175
2136
|
raise ArgumentError, "Parameter `user_id` is required when calling `remove_user_id`."
|
2176
2137
|
end
|
2177
2138
|
|
2178
|
-
pattern = /^[a-zA-Z0-9 \-*.]+$/
|
2179
|
-
if @api_client.config.client_side_validation && user_id !~ pattern
|
2180
|
-
raise(
|
2181
|
-
ArgumentError,
|
2182
|
-
"invalid value for 'user_id' when calling SearchClient.remove_user_id, must conform to the pattern #{pattern}."
|
2183
|
-
)
|
2184
|
-
end
|
2185
|
-
|
2186
2139
|
path = "/1/clusters/mapping/{userID}".sub("{" + "userID" + "}", Transport.encode_uri(user_id.to_s))
|
2187
2140
|
query_params = {}
|
2188
2141
|
query_params = query_params.merge(request_options[:query_params]) unless request_options[:query_params].nil?
|
@@ -2258,7 +2211,7 @@ module Algolia
|
|
2258
2211
|
@api_client.deserialize(response.body, request_options[:debug_return_type] || "Search::ReplaceSourceResponse")
|
2259
2212
|
end
|
2260
2213
|
|
2261
|
-
# Restores a deleted API key. Restoring resets the
|
2214
|
+
# Restores a deleted API key. Restoring resets the `validity` attribute to `0`. Algolia stores up to 1,000 API keys per application. If you create more, the oldest API keys are deleted and can't be restored.
|
2262
2215
|
#
|
2263
2216
|
# Required API Key ACLs:
|
2264
2217
|
# - admin
|
@@ -2302,7 +2255,7 @@ module Algolia
|
|
2302
2255
|
@api_client.deserialize(response.body, request_options[:debug_return_type] || "Search::AddApiKeyResponse")
|
2303
2256
|
end
|
2304
2257
|
|
2305
|
-
# Adds a record to an index or replace it. - If the record doesn
|
2258
|
+
# Adds a record to an index or replace it. - If the record doesn't have an object ID, a new record with an auto-generated object ID is added to your index. - If a record with the specified object ID exists, the existing record is replaced. - If a record with the specified object ID doesn't exist, a new record is added to your index. - If you add a record to an index that doesn't exist yet, a new index is created. To update _some_ attributes of a record, use the [`partial` operation](#tag/Records/operation/partialUpdateObject). To add, update, or replace multiple records, use the [`batch` operation](#tag/Records/operation/batch).
|
2306
2259
|
#
|
2307
2260
|
# Required API Key ACLs:
|
2308
2261
|
# - addObject
|
@@ -2352,7 +2305,7 @@ module Algolia
|
|
2352
2305
|
@api_client.deserialize(response.body, request_options[:debug_return_type] || "Search::SaveObjectResponse")
|
2353
2306
|
end
|
2354
2307
|
|
2355
|
-
# If a rule with the specified object ID doesn
|
2308
|
+
# If a rule with the specified object ID doesn't exist, it's created. Otherwise, the existing rule is replaced. To create or update more than one rule, use the [`batch` operation](#tag/Rules/operation/saveRules).
|
2356
2309
|
#
|
2357
2310
|
# Required API Key ACLs:
|
2358
2311
|
# - editSettings
|
@@ -2413,7 +2366,7 @@ module Algolia
|
|
2413
2366
|
@api_client.deserialize(response.body, request_options[:debug_return_type] || "Search::UpdatedRuleResponse")
|
2414
2367
|
end
|
2415
2368
|
|
2416
|
-
# Create or update multiple rules. If a rule with the specified object ID doesn
|
2369
|
+
# Create or update multiple rules. If a rule with the specified object ID doesn't exist, Algolia creates a new one. Otherwise, existing rules are replaced.
|
2417
2370
|
#
|
2418
2371
|
# Required API Key ACLs:
|
2419
2372
|
# - editSettings
|
@@ -2481,7 +2434,7 @@ module Algolia
|
|
2481
2434
|
@api_client.deserialize(response.body, request_options[:debug_return_type] || "Search::UpdatedAtResponse")
|
2482
2435
|
end
|
2483
2436
|
|
2484
|
-
# If a synonym with the specified object ID doesn
|
2437
|
+
# If a synonym with the specified object ID doesn't exist, Algolia adds a new one. Otherwise, the existing synonym is replaced. To add multiple synonyms in a single API request, use the [`batch` operation](#tag/Synonyms/operation/saveSynonyms).
|
2485
2438
|
#
|
2486
2439
|
# Required API Key ACLs:
|
2487
2440
|
# - editSettings
|
@@ -2542,7 +2495,7 @@ module Algolia
|
|
2542
2495
|
@api_client.deserialize(response.body, request_options[:debug_return_type] || "Search::SaveSynonymResponse")
|
2543
2496
|
end
|
2544
2497
|
|
2545
|
-
# If a synonym with the
|
2498
|
+
# If a synonym with the `objectID` doesn't exist, Algolia adds a new one. Otherwise, existing synonyms are replaced.
|
2546
2499
|
#
|
2547
2500
|
# Required API Key ACLs:
|
2548
2501
|
# - editSettings
|
@@ -2727,12 +2680,12 @@ module Algolia
|
|
2727
2680
|
)
|
2728
2681
|
end
|
2729
2682
|
|
2730
|
-
# Searches for values of a specified facet attribute. - By default, facet values are sorted by decreasing count. You can adjust this with the
|
2683
|
+
# Searches for values of a specified facet attribute. - By default, facet values are sorted by decreasing count. You can adjust this with the `sortFacetValueBy` parameter. - Searching for facet values doesn't work if you have **more than 65 searchable facets and searchable attributes combined**.
|
2731
2684
|
#
|
2732
2685
|
# Required API Key ACLs:
|
2733
2686
|
# - search
|
2734
2687
|
# @param index_name [String] Name of the index on which to perform the operation. (required)
|
2735
|
-
# @param facet_name [String] Facet attribute in which to search for values. This attribute must be included in the
|
2688
|
+
# @param facet_name [String] Facet attribute in which to search for values. This attribute must be included in the `attributesForFaceting` index setting with the `searchable()` modifier. (required)
|
2736
2689
|
# @param search_for_facet_values_request [SearchForFacetValuesRequest]
|
2737
2690
|
# @param request_options: The request options to send along with the query, they will be merged with the transporter base parameters (headers, query params, timeouts, etc.). (optional)
|
2738
2691
|
# @return [Http::Response] the response
|
@@ -2777,7 +2730,7 @@ module Algolia
|
|
2777
2730
|
# Required API Key ACLs:
|
2778
2731
|
# - search
|
2779
2732
|
# @param index_name [String] Name of the index on which to perform the operation. (required)
|
2780
|
-
# @param facet_name [String] Facet attribute in which to search for values. This attribute must be included in the
|
2733
|
+
# @param facet_name [String] Facet attribute in which to search for values. This attribute must be included in the `attributesForFaceting` index setting with the `searchable()` modifier. (required)
|
2781
2734
|
# @param search_for_facet_values_request [SearchForFacetValuesRequest]
|
2782
2735
|
# @param request_options: The request options to send along with the query, they will be merged with the transporter base parameters (headers, query params, timeouts, etc.). (optional)
|
2783
2736
|
# @return [SearchForFacetValuesResponse]
|
@@ -2840,7 +2793,7 @@ module Algolia
|
|
2840
2793
|
@api_client.deserialize(response.body, request_options[:debug_return_type] || "Search::SearchRulesResponse")
|
2841
2794
|
end
|
2842
2795
|
|
2843
|
-
# Searches a single index and returns matching search results (_hits_). This method lets you retrieve up to 1,000 hits. If you need more, use the [
|
2796
|
+
# Searches a single index and returns matching search results (_hits_). This method lets you retrieve up to 1,000 hits. If you need more, use the [`browse` operation](#tag/Search/operation/browse) or increase the `paginatedLimitedTo` index setting.
|
2844
2797
|
#
|
2845
2798
|
# Required API Key ACLs:
|
2846
2799
|
# - search
|
@@ -2891,7 +2844,7 @@ module Algolia
|
|
2891
2844
|
# Required API Key ACLs:
|
2892
2845
|
# - settings
|
2893
2846
|
# @param index_name [String] Name of the index on which to perform the operation. (required)
|
2894
|
-
# @param search_synonyms_params [SearchSynonymsParams] Body of the
|
2847
|
+
# @param search_synonyms_params [SearchSynonymsParams] Body of the `searchSynonyms` operation.
|
2895
2848
|
# @param request_options: The request options to send along with the query, they will be merged with the transporter base parameters (headers, query params, timeouts, etc.). (optional)
|
2896
2849
|
# @return [Http::Response] the response
|
2897
2850
|
def search_synonyms_with_http_info(index_name, search_synonyms_params = nil, request_options = {})
|
@@ -2927,7 +2880,7 @@ module Algolia
|
|
2927
2880
|
# Required API Key ACLs:
|
2928
2881
|
# - settings
|
2929
2882
|
# @param index_name [String] Name of the index on which to perform the operation. (required)
|
2930
|
-
# @param search_synonyms_params [SearchSynonymsParams] Body of the
|
2883
|
+
# @param search_synonyms_params [SearchSynonymsParams] Body of the `searchSynonyms` operation.
|
2931
2884
|
# @param request_options: The request options to send along with the query, they will be merged with the transporter base parameters (headers, query params, timeouts, etc.). (optional)
|
2932
2885
|
# @return [SearchSynonymsResponse]
|
2933
2886
|
def search_synonyms(index_name, search_synonyms_params = nil, request_options = {})
|
@@ -2935,7 +2888,7 @@ module Algolia
|
|
2935
2888
|
@api_client.deserialize(response.body, request_options[:debug_return_type] || "Search::SearchSynonymsResponse")
|
2936
2889
|
end
|
2937
2890
|
|
2938
|
-
# Since it can take a few seconds to get the data from the different clusters, the response isn
|
2891
|
+
# Since it can take a few seconds to get the data from the different clusters, the response isn't real-time. To ensure rapid updates, the user IDs index isn't built at the same time as the mapping. Instead, it's built every 12 hours, at the same time as the update of user ID usage. For example, if you add or move a user ID, the search will show an old value until the next time the mapping is rebuilt (every 12 hours).
|
2939
2892
|
#
|
2940
2893
|
# Required API Key ACLs:
|
2941
2894
|
# - admin
|
@@ -3026,7 +2979,7 @@ module Algolia
|
|
3026
2979
|
@api_client.deserialize(response.body, request_options[:debug_return_type] || "Search::UpdatedAtResponse")
|
3027
2980
|
end
|
3028
2981
|
|
3029
|
-
# Update the specified index settings. Index settings that you don
|
2982
|
+
# Update the specified index settings. Index settings that you don't specify are left unchanged. Specify `null` to reset a setting to its default value. For best performance, update the index settings before you add new records to your index.
|
3030
2983
|
#
|
3031
2984
|
# Required API Key ACLs:
|
3032
2985
|
# - editSettings
|