algolia 3.0.0.alpha.5 → 3.0.0.alpha.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.openapi-generator/VERSION +1 -1
- data/CHANGELOG.md +17 -0
- data/Gemfile.lock +12 -12
- data/algolia.gemspec +2 -1
- data/lib/algolia/api/abtesting_client.rb +50 -30
- data/lib/algolia/api/analytics_client.rb +132 -64
- data/lib/algolia/api/ingestion_client.rb +371 -131
- data/lib/algolia/api/insights_client.rb +18 -18
- data/lib/algolia/api/monitoring_client.rb +46 -53
- data/lib/algolia/api/personalization_client.rb +42 -26
- data/lib/algolia/api/query_suggestions_client.rb +66 -38
- data/lib/algolia/api/recommend_client.rb +57 -38
- data/lib/algolia/api/search_client.rb +625 -280
- data/lib/algolia/api_client.rb +2 -5
- data/lib/algolia/models/abtesting/ab_test.rb +14 -4
- data/lib/algolia/models/abtesting/ab_test_response.rb +7 -3
- data/lib/algolia/models/abtesting/ab_tests_variant.rb +7 -3
- data/lib/algolia/models/abtesting/ab_tests_variant_search_params.rb +7 -3
- data/lib/algolia/models/abtesting/add_ab_tests_request.rb +7 -3
- data/lib/algolia/models/abtesting/add_ab_tests_variant.rb +1 -1
- data/lib/algolia/models/abtesting/currencies_value.rb +7 -3
- data/lib/algolia/models/abtesting/custom_search_params.rb +7 -3
- data/lib/algolia/models/abtesting/error_base.rb +13 -4
- data/lib/algolia/models/abtesting/filter_effects.rb +7 -3
- data/lib/algolia/models/abtesting/filter_effects_empty_search.rb +7 -3
- data/lib/algolia/models/abtesting/filter_effects_outliers.rb +7 -3
- data/lib/algolia/models/abtesting/list_ab_tests_response.rb +10 -4
- data/lib/algolia/models/abtesting/variant.rb +46 -11
- data/lib/algolia/models/analytics/average_click_event.rb +7 -3
- data/lib/algolia/models/analytics/click_position.rb +7 -3
- data/lib/algolia/models/analytics/click_through_rate_event.rb +10 -4
- data/lib/algolia/models/analytics/conversion_rate_event.rb +10 -4
- data/lib/algolia/models/analytics/error_base.rb +13 -4
- data/lib/algolia/models/analytics/get_average_click_position_response.rb +7 -3
- data/lib/algolia/models/analytics/get_click_positions_response.rb +7 -3
- data/lib/algolia/models/analytics/get_click_through_rate_response.rb +10 -4
- data/lib/algolia/models/analytics/get_conversation_rate_response.rb +10 -4
- data/lib/algolia/models/analytics/get_no_click_rate_response.rb +7 -3
- data/lib/algolia/models/analytics/get_no_results_rate_response.rb +7 -3
- data/lib/algolia/models/analytics/get_searches_count_response.rb +7 -3
- data/lib/algolia/models/analytics/get_searches_no_clicks_response.rb +7 -3
- data/lib/algolia/models/analytics/get_searches_no_results_response.rb +7 -3
- data/lib/algolia/models/analytics/get_status_response.rb +7 -3
- data/lib/algolia/models/analytics/get_top_countries_response.rb +7 -3
- data/lib/algolia/models/analytics/get_top_filter_attribute.rb +7 -3
- data/lib/algolia/models/analytics/get_top_filter_attributes_response.rb +7 -3
- data/lib/algolia/models/analytics/get_top_filter_for_attribute.rb +7 -3
- data/lib/algolia/models/analytics/get_top_filter_for_attribute_response.rb +7 -3
- data/lib/algolia/models/analytics/get_top_filters_no_results_response.rb +7 -3
- data/lib/algolia/models/analytics/get_top_filters_no_results_value.rb +7 -3
- data/lib/algolia/models/analytics/get_top_filters_no_results_values.rb +7 -3
- data/lib/algolia/models/analytics/get_top_hits_response.rb +1 -1
- data/lib/algolia/models/analytics/get_top_searches_response.rb +1 -1
- data/lib/algolia/models/analytics/get_users_count_response.rb +7 -3
- data/lib/algolia/models/analytics/no_click_rate_event.rb +7 -3
- data/lib/algolia/models/analytics/no_results_rate_event.rb +7 -3
- data/lib/algolia/models/analytics/search_event.rb +7 -3
- data/lib/algolia/models/analytics/search_no_click_event.rb +7 -3
- data/lib/algolia/models/analytics/search_no_result_event.rb +7 -3
- data/lib/algolia/models/analytics/top_country.rb +7 -3
- data/lib/algolia/models/analytics/top_hit.rb +7 -3
- data/lib/algolia/models/analytics/top_hit_with_analytics.rb +10 -4
- data/lib/algolia/models/analytics/top_hits_response.rb +7 -3
- data/lib/algolia/models/analytics/top_hits_response_with_analytics.rb +7 -3
- data/lib/algolia/models/analytics/top_search.rb +7 -3
- data/lib/algolia/models/analytics/top_search_with_analytics.rb +10 -4
- data/lib/algolia/models/analytics/top_searches_response.rb +7 -3
- data/lib/algolia/models/analytics/top_searches_response_with_analytics.rb +7 -3
- data/lib/algolia/models/analytics/user_with_date.rb +7 -3
- data/lib/algolia/models/ingestion/auth_algolia.rb +7 -3
- data/lib/algolia/models/ingestion/auth_algolia_partial.rb +7 -3
- data/lib/algolia/models/ingestion/auth_api_key.rb +7 -3
- data/lib/algolia/models/ingestion/auth_api_key_partial.rb +7 -3
- data/lib/algolia/models/ingestion/auth_basic.rb +7 -3
- data/lib/algolia/models/ingestion/auth_basic_partial.rb +7 -3
- data/lib/algolia/models/ingestion/auth_google_service_account.rb +7 -3
- data/lib/algolia/models/ingestion/auth_google_service_account_partial.rb +7 -3
- data/lib/algolia/models/ingestion/auth_input.rb +1 -1
- data/lib/algolia/models/ingestion/auth_input_partial.rb +1 -1
- data/lib/algolia/models/ingestion/auth_o_auth.rb +7 -3
- data/lib/algolia/models/ingestion/auth_o_auth_partial.rb +7 -3
- data/lib/algolia/models/ingestion/authentication.rb +7 -3
- data/lib/algolia/models/ingestion/authentication_create.rb +7 -3
- data/lib/algolia/models/ingestion/authentication_create_response.rb +7 -3
- data/lib/algolia/models/ingestion/authentication_search.rb +7 -3
- data/lib/algolia/models/ingestion/authentication_update.rb +7 -3
- data/lib/algolia/models/ingestion/authentication_update_response.rb +7 -3
- data/lib/algolia/models/ingestion/big_commerce_channel.rb +7 -3
- data/lib/algolia/models/ingestion/big_commerce_metafield.rb +7 -3
- data/lib/algolia/models/ingestion/delete_response.rb +7 -3
- data/lib/algolia/models/ingestion/destination.rb +7 -3
- data/lib/algolia/models/ingestion/destination_create.rb +7 -3
- data/lib/algolia/models/ingestion/destination_create_response.rb +7 -3
- data/lib/algolia/models/ingestion/destination_index_name.rb +7 -3
- data/lib/algolia/models/ingestion/destination_index_prefix.rb +7 -3
- data/lib/algolia/models/ingestion/destination_input.rb +1 -1
- data/lib/algolia/models/ingestion/destination_search.rb +7 -3
- data/lib/algolia/models/ingestion/destination_update.rb +7 -3
- data/lib/algolia/models/ingestion/destination_update_response.rb +7 -3
- data/lib/algolia/models/ingestion/docker_source_discover.rb +7 -3
- data/lib/algolia/models/ingestion/docker_source_streams.rb +7 -3
- data/lib/algolia/models/ingestion/error_base.rb +13 -4
- data/lib/algolia/models/ingestion/event.rb +7 -3
- data/lib/algolia/models/ingestion/list_authentications_response.rb +7 -3
- data/lib/algolia/models/ingestion/list_destinations_response.rb +7 -3
- data/lib/algolia/models/ingestion/list_events_response.rb +7 -3
- data/lib/algolia/models/ingestion/list_sources_response.rb +7 -3
- data/lib/algolia/models/ingestion/list_tasks_response.rb +7 -3
- data/lib/algolia/models/ingestion/on_demand_date_utils_input.rb +7 -3
- data/lib/algolia/models/ingestion/on_demand_trigger.rb +7 -3
- data/lib/algolia/models/ingestion/on_demand_trigger_input.rb +7 -3
- data/lib/algolia/models/ingestion/pagination.rb +7 -3
- data/lib/algolia/models/ingestion/platform_with_none.rb +1 -1
- data/lib/algolia/models/ingestion/run.rb +7 -3
- data/lib/algolia/models/ingestion/run_list_response.rb +7 -3
- data/lib/algolia/models/ingestion/run_progress.rb +7 -3
- data/lib/algolia/models/ingestion/run_response.rb +7 -3
- data/lib/algolia/models/ingestion/schedule_date_utils_input.rb +7 -3
- data/lib/algolia/models/ingestion/schedule_trigger.rb +7 -3
- data/lib/algolia/models/ingestion/schedule_trigger_input.rb +7 -3
- data/lib/algolia/models/ingestion/source.rb +7 -3
- data/lib/algolia/models/ingestion/source_big_commerce.rb +7 -3
- data/lib/algolia/models/ingestion/source_big_query.rb +7 -3
- data/lib/algolia/models/ingestion/source_commercetools.rb +7 -3
- data/lib/algolia/models/ingestion/source_create.rb +7 -3
- data/lib/algolia/models/ingestion/source_create_response.rb +7 -3
- data/lib/algolia/models/ingestion/source_csv.rb +7 -3
- data/lib/algolia/models/ingestion/source_docker.rb +7 -3
- data/lib/algolia/models/ingestion/source_input.rb +1 -1
- data/lib/algolia/models/ingestion/source_json.rb +7 -3
- data/lib/algolia/models/ingestion/source_search.rb +7 -3
- data/lib/algolia/models/ingestion/source_update.rb +7 -3
- data/lib/algolia/models/ingestion/source_update_commercetools.rb +7 -3
- data/lib/algolia/models/ingestion/source_update_docker.rb +7 -3
- data/lib/algolia/models/ingestion/source_update_input.rb +1 -1
- data/lib/algolia/models/ingestion/source_update_response.rb +7 -3
- data/lib/algolia/models/ingestion/subscription_trigger.rb +7 -3
- data/lib/algolia/models/ingestion/task.rb +7 -3
- data/lib/algolia/models/ingestion/task_create.rb +7 -3
- data/lib/algolia/models/ingestion/task_create_response.rb +7 -3
- data/lib/algolia/models/ingestion/task_create_trigger.rb +1 -1
- data/lib/algolia/models/ingestion/task_input.rb +1 -1
- data/lib/algolia/models/ingestion/task_search.rb +7 -3
- data/lib/algolia/models/ingestion/task_update.rb +7 -3
- data/lib/algolia/models/ingestion/task_update_response.rb +7 -3
- data/lib/algolia/models/ingestion/trigger.rb +1 -1
- data/lib/algolia/models/ingestion/trigger_update_input.rb +7 -3
- data/lib/algolia/models/ingestion/window.rb +7 -3
- data/lib/algolia/models/insights/added_to_cart_object_ids.rb +7 -3
- data/lib/algolia/models/insights/added_to_cart_object_ids_after_search.rb +7 -3
- data/lib/algolia/models/insights/clicked_filters.rb +7 -3
- data/lib/algolia/models/insights/clicked_object_ids.rb +7 -3
- data/lib/algolia/models/insights/clicked_object_ids_after_search.rb +7 -3
- data/lib/algolia/models/insights/converted_filters.rb +7 -3
- data/lib/algolia/models/insights/converted_object_ids.rb +7 -3
- data/lib/algolia/models/insights/converted_object_ids_after_search.rb +7 -3
- data/lib/algolia/models/insights/discount.rb +1 -1
- data/lib/algolia/models/insights/error_base.rb +13 -4
- data/lib/algolia/models/insights/events_items.rb +1 -1
- data/lib/algolia/models/insights/events_response.rb +7 -3
- data/lib/algolia/models/insights/insights_events.rb +7 -3
- data/lib/algolia/models/insights/object_data.rb +7 -3
- data/lib/algolia/models/insights/object_data_after_search.rb +7 -3
- data/lib/algolia/models/insights/price.rb +1 -1
- data/lib/algolia/models/insights/purchased_object_ids.rb +7 -3
- data/lib/algolia/models/insights/purchased_object_ids_after_search.rb +7 -3
- data/lib/algolia/models/insights/value.rb +1 -1
- data/lib/algolia/models/insights/viewed_filters.rb +7 -3
- data/lib/algolia/models/insights/viewed_object_ids.rb +7 -3
- data/lib/algolia/models/monitoring/error_base.rb +13 -4
- data/lib/algolia/models/monitoring/get_inventory403_response.rb +7 -3
- data/lib/algolia/models/monitoring/incident.rb +7 -3
- data/lib/algolia/models/monitoring/incidents_inner.rb +7 -3
- data/lib/algolia/models/monitoring/incidents_response.rb +7 -3
- data/lib/algolia/models/monitoring/indexing_time_response.rb +7 -3
- data/lib/algolia/models/monitoring/indexing_time_response_metrics.rb +7 -3
- data/lib/algolia/models/monitoring/infrastructure_response.rb +7 -3
- data/lib/algolia/models/monitoring/infrastructure_response_metrics.rb +7 -3
- data/lib/algolia/models/monitoring/inventory_response.rb +7 -3
- data/lib/algolia/models/monitoring/latency_response.rb +7 -3
- data/lib/algolia/models/monitoring/latency_response_metrics.rb +7 -3
- data/lib/algolia/models/monitoring/probes_metric.rb +7 -3
- data/lib/algolia/models/monitoring/server.rb +7 -3
- data/lib/algolia/models/monitoring/status_response.rb +7 -3
- data/lib/algolia/models/monitoring/time_inner.rb +7 -3
- data/lib/algolia/models/personalization/delete_user_profile_response.rb +7 -3
- data/lib/algolia/models/personalization/error_base.rb +13 -4
- data/lib/algolia/models/personalization/event_scoring.rb +7 -3
- data/lib/algolia/models/personalization/facet_scoring.rb +7 -3
- data/lib/algolia/models/personalization/get_user_token_response.rb +7 -3
- data/lib/algolia/models/personalization/personalization_strategy_params.rb +7 -3
- data/lib/algolia/models/personalization/set_personalization_strategy_response.rb +7 -3
- data/lib/algolia/models/query-suggestions/base_query_suggestions_configuration_response.rb +8 -14
- data/lib/algolia/models/query-suggestions/base_query_suggestions_configuration_with_index.rb +7 -3
- data/lib/algolia/models/query-suggestions/base_response.rb +7 -3
- data/lib/algolia/models/query-suggestions/error_base.rb +13 -4
- data/lib/algolia/models/query-suggestions/facet.rb +7 -3
- data/lib/algolia/models/query-suggestions/get_config_status200_response.rb +7 -3
- data/lib/algolia/models/query-suggestions/get_log_file200_response.rb +7 -3
- data/lib/algolia/models/query-suggestions/languages.rb +1 -1
- data/lib/algolia/models/query-suggestions/query_suggestions_configuration.rb +7 -3
- data/lib/algolia/models/query-suggestions/query_suggestions_configuration_response.rb +8 -14
- data/lib/algolia/models/query-suggestions/query_suggestions_configuration_with_index.rb +7 -3
- data/lib/algolia/models/query-suggestions/source_index.rb +7 -3
- data/lib/algolia/models/recommend/around_precision.rb +1 -1
- data/lib/algolia/models/recommend/around_precision_from_value_inner.rb +7 -3
- data/lib/algolia/models/recommend/around_radius.rb +1 -1
- data/lib/algolia/models/recommend/automatic_facet_filter.rb +7 -3
- data/lib/algolia/models/recommend/automatic_facet_filters.rb +1 -1
- data/lib/algolia/models/recommend/base_recommend_request.rb +7 -3
- data/lib/algolia/models/recommend/base_recommendations_query.rb +7 -3
- data/lib/algolia/models/recommend/base_recommended_for_you_query.rb +7 -3
- data/lib/algolia/models/recommend/base_recommended_for_you_query_parameters.rb +7 -3
- data/lib/algolia/models/recommend/base_search_params.rb +7 -3
- data/lib/algolia/models/recommend/base_search_params_without_query.rb +7 -3
- data/lib/algolia/models/recommend/base_search_response.rb +13 -4
- data/lib/algolia/models/recommend/base_trending_facets_query.rb +7 -3
- data/lib/algolia/models/recommend/base_trending_items_query.rb +7 -3
- data/lib/algolia/models/recommend/condition.rb +7 -3
- data/lib/algolia/models/recommend/consequence.rb +7 -3
- data/lib/algolia/models/recommend/consequence_hide.rb +7 -3
- data/lib/algolia/models/recommend/consequence_params.rb +7 -3
- data/lib/algolia/models/recommend/consequence_query.rb +1 -1
- data/lib/algolia/models/recommend/consequence_query_object.rb +7 -3
- data/lib/algolia/models/recommend/deleted_at_response.rb +7 -3
- data/lib/algolia/models/recommend/distinct.rb +1 -1
- data/lib/algolia/models/recommend/edit.rb +7 -3
- data/lib/algolia/models/recommend/error_base.rb +13 -4
- data/lib/algolia/models/recommend/exhaustive.rb +7 -3
- data/lib/algolia/models/recommend/facet_filters.rb +1 -1
- data/lib/algolia/models/recommend/facet_ordering.rb +7 -3
- data/lib/algolia/models/recommend/facets.rb +7 -3
- data/lib/algolia/models/recommend/facets_stats.rb +7 -3
- data/lib/algolia/models/recommend/get_recommend_task_response.rb +7 -3
- data/lib/algolia/models/recommend/get_recommendations_params.rb +7 -3
- data/lib/algolia/models/recommend/get_recommendations_response.rb +7 -3
- data/lib/algolia/models/recommend/highlight_result.rb +2 -1
- data/lib/algolia/models/recommend/highlight_result_option.rb +7 -3
- data/lib/algolia/models/recommend/ignore_plurals.rb +1 -1
- data/lib/algolia/models/recommend/index_settings_as_search_params.rb +7 -3
- data/lib/algolia/models/recommend/matched_geo_location.rb +7 -3
- data/lib/algolia/models/recommend/mixed_search_filters.rb +1 -1
- data/lib/algolia/models/recommend/numeric_filters.rb +1 -1
- data/lib/algolia/models/recommend/optional_filters.rb +1 -1
- data/lib/algolia/models/recommend/params.rb +7 -3
- data/lib/algolia/models/recommend/personalization.rb +7 -3
- data/lib/algolia/models/recommend/promote.rb +1 -1
- data/lib/algolia/models/recommend/promote_object_id.rb +7 -3
- data/lib/algolia/models/recommend/promote_object_ids.rb +7 -3
- data/lib/algolia/models/recommend/ranking_info.rb +7 -3
- data/lib/algolia/models/recommend/re_ranking_apply_filter.rb +1 -1
- data/lib/algolia/models/recommend/recommend_hit.rb +13 -4
- data/lib/algolia/models/recommend/recommendations_hit.rb +1 -1
- data/lib/algolia/models/recommend/recommendations_hits.rb +7 -3
- data/lib/algolia/models/recommend/recommendations_query.rb +7 -3
- data/lib/algolia/models/recommend/recommendations_request.rb +1 -1
- data/lib/algolia/models/recommend/recommendations_results.rb +7 -3
- data/lib/algolia/models/recommend/recommended_for_you_query.rb +7 -3
- data/lib/algolia/models/recommend/recommended_for_you_query_parameters.rb +7 -3
- data/lib/algolia/models/recommend/redirect.rb +7 -3
- data/lib/algolia/models/recommend/redirect_rule_index_metadata.rb +7 -3
- data/lib/algolia/models/recommend/redirect_rule_index_metadata_data.rb +7 -3
- data/lib/algolia/models/recommend/remove_stop_words.rb +1 -1
- data/lib/algolia/models/recommend/rendering_content.rb +7 -3
- data/lib/algolia/models/recommend/rule_response.rb +7 -3
- data/lib/algolia/models/recommend/rule_response_metadata.rb +7 -3
- data/lib/algolia/models/recommend/search_params_object.rb +7 -3
- data/lib/algolia/models/recommend/search_params_query.rb +7 -3
- data/lib/algolia/models/recommend/search_recommend_rules_params.rb +7 -3
- data/lib/algolia/models/recommend/search_recommend_rules_response.rb +7 -3
- data/lib/algolia/models/recommend/semantic_search.rb +7 -3
- data/lib/algolia/models/recommend/snippet_result.rb +2 -1
- data/lib/algolia/models/recommend/snippet_result_option.rb +7 -3
- data/lib/algolia/models/recommend/tag_filters.rb +1 -1
- data/lib/algolia/models/recommend/trending_facet_hit.rb +7 -3
- data/lib/algolia/models/recommend/trending_facets_query.rb +7 -3
- data/lib/algolia/models/recommend/trending_items_query.rb +7 -3
- data/lib/algolia/models/recommend/typo_tolerance.rb +1 -1
- data/lib/algolia/models/recommend/value.rb +7 -3
- data/lib/algolia/models/search/add_api_key_response.rb +7 -3
- data/lib/algolia/models/search/api_key.rb +7 -3
- data/lib/algolia/models/search/around_precision.rb +1 -1
- data/lib/algolia/models/search/around_precision_from_value_inner.rb +7 -3
- data/lib/algolia/models/search/around_radius.rb +1 -1
- data/lib/algolia/models/search/assign_user_id_params.rb +7 -3
- data/lib/algolia/models/search/attribute_to_update.rb +1 -1
- data/lib/algolia/models/search/automatic_facet_filter.rb +7 -3
- data/lib/algolia/models/search/automatic_facet_filters.rb +1 -1
- data/lib/algolia/models/search/base_get_api_key_response.rb +7 -3
- data/lib/algolia/models/search/base_index_settings.rb +7 -3
- data/lib/algolia/models/search/base_search_params.rb +7 -3
- data/lib/algolia/models/search/base_search_params_without_query.rb +7 -3
- data/lib/algolia/models/search/base_search_response.rb +13 -4
- data/lib/algolia/models/search/batch_assign_user_ids_params.rb +7 -3
- data/lib/algolia/models/search/batch_dictionary_entries_params.rb +7 -3
- data/lib/algolia/models/search/batch_dictionary_entries_request.rb +7 -3
- data/lib/algolia/models/search/batch_params.rb +7 -3
- data/lib/algolia/models/search/batch_request.rb +7 -3
- data/lib/algolia/models/search/batch_response.rb +7 -3
- data/lib/algolia/models/search/batch_write_params.rb +7 -3
- data/lib/algolia/models/search/browse_params.rb +1 -1
- data/lib/algolia/models/search/browse_params_object.rb +7 -3
- data/lib/algolia/models/search/browse_response.rb +7 -3
- data/lib/algolia/models/search/built_in_operation.rb +7 -3
- data/lib/algolia/models/search/condition.rb +7 -3
- data/lib/algolia/models/search/consequence.rb +7 -3
- data/lib/algolia/models/search/consequence_hide.rb +7 -3
- data/lib/algolia/models/search/consequence_params.rb +7 -3
- data/lib/algolia/models/search/consequence_query.rb +1 -1
- data/lib/algolia/models/search/consequence_query_object.rb +7 -3
- data/lib/algolia/models/search/created_at_response.rb +7 -3
- data/lib/algolia/models/search/cursor.rb +7 -3
- data/lib/algolia/models/search/delete_api_key_response.rb +7 -3
- data/lib/algolia/models/search/delete_by_params.rb +7 -3
- data/lib/algolia/models/search/delete_source_response.rb +7 -3
- data/lib/algolia/models/search/deleted_at_response.rb +7 -3
- data/lib/algolia/models/search/dictionary_entry.rb +13 -4
- data/lib/algolia/models/search/dictionary_language.rb +7 -3
- data/lib/algolia/models/search/dictionary_settings_params.rb +7 -3
- data/lib/algolia/models/search/distinct.rb +1 -1
- data/lib/algolia/models/search/edit.rb +7 -3
- data/lib/algolia/models/search/error_base.rb +13 -4
- data/lib/algolia/models/search/exhaustive.rb +7 -3
- data/lib/algolia/models/search/facet_filters.rb +1 -1
- data/lib/algolia/models/search/facet_hits.rb +7 -3
- data/lib/algolia/models/search/facet_ordering.rb +7 -3
- data/lib/algolia/models/search/facets.rb +7 -3
- data/lib/algolia/models/search/facets_stats.rb +7 -3
- data/lib/algolia/models/search/fetched_index.rb +7 -3
- data/lib/algolia/models/search/get_api_key_response.rb +7 -3
- data/lib/algolia/models/search/get_dictionary_settings_response.rb +7 -3
- data/lib/algolia/models/search/get_logs_response.rb +7 -3
- data/lib/algolia/models/search/get_objects_params.rb +7 -3
- data/lib/algolia/models/search/get_objects_request.rb +7 -3
- data/lib/algolia/models/search/get_objects_response.rb +7 -3
- data/lib/algolia/models/search/get_task_response.rb +7 -3
- data/lib/algolia/models/search/get_top_user_ids_response.rb +7 -3
- data/lib/algolia/models/search/has_pending_mappings_response.rb +7 -3
- data/lib/algolia/models/search/highlight_result.rb +2 -1
- data/lib/algolia/models/search/highlight_result_option.rb +7 -3
- data/lib/algolia/models/search/hit.rb +13 -4
- data/lib/algolia/models/search/ignore_plurals.rb +1 -1
- data/lib/algolia/models/search/index_settings.rb +7 -3
- data/lib/algolia/models/search/index_settings_as_search_params.rb +7 -3
- data/lib/algolia/models/search/languages.rb +7 -3
- data/lib/algolia/models/search/list_api_keys_response.rb +7 -3
- data/lib/algolia/models/search/list_clusters_response.rb +7 -3
- data/lib/algolia/models/search/list_indices_response.rb +7 -3
- data/lib/algolia/models/search/list_user_ids_response.rb +7 -3
- data/lib/algolia/models/search/log.rb +7 -3
- data/lib/algolia/models/search/log_query.rb +7 -3
- data/lib/algolia/models/search/matched_geo_location.rb +7 -3
- data/lib/algolia/models/search/mixed_search_filters.rb +1 -1
- data/lib/algolia/models/search/multiple_batch_request.rb +7 -3
- data/lib/algolia/models/search/multiple_batch_response.rb +7 -3
- data/lib/algolia/models/search/numeric_filters.rb +1 -1
- data/lib/algolia/models/search/operation_index_params.rb +7 -3
- data/lib/algolia/models/search/optional_filters.rb +1 -1
- data/lib/algolia/models/search/params.rb +7 -3
- data/lib/algolia/models/search/personalization.rb +7 -3
- data/lib/algolia/models/search/promote.rb +1 -1
- data/lib/algolia/models/search/promote_object_id.rb +7 -3
- data/lib/algolia/models/search/promote_object_ids.rb +7 -3
- data/lib/algolia/models/search/ranking_info.rb +7 -3
- data/lib/algolia/models/search/re_ranking_apply_filter.rb +1 -1
- data/lib/algolia/models/search/redirect.rb +7 -3
- data/lib/algolia/models/search/redirect_rule_index_metadata.rb +7 -3
- data/lib/algolia/models/search/redirect_rule_index_metadata_data.rb +7 -3
- data/lib/algolia/models/search/remove_stop_words.rb +1 -1
- data/lib/algolia/models/search/remove_user_id_response.rb +7 -3
- data/lib/algolia/models/search/rendering_content.rb +7 -3
- data/lib/algolia/models/search/replace_source_response.rb +7 -3
- data/lib/algolia/models/search/rule.rb +7 -3
- data/lib/algolia/models/search/save_object_response.rb +7 -3
- data/lib/algolia/models/search/save_synonym_response.rb +7 -3
- data/lib/algolia/models/search/search_dictionary_entries_params.rb +7 -3
- data/lib/algolia/models/search/search_for_facet_values_request.rb +7 -3
- data/lib/algolia/models/search/search_for_facet_values_response.rb +7 -3
- data/lib/algolia/models/search/search_for_facets.rb +7 -3
- data/lib/algolia/models/search/search_for_facets_options.rb +7 -3
- data/lib/algolia/models/search/search_for_hits.rb +7 -3
- data/lib/algolia/models/search/search_for_hits_options.rb +7 -3
- data/lib/algolia/models/search/search_hits.rb +13 -4
- data/lib/algolia/models/search/search_method_params.rb +7 -3
- data/lib/algolia/models/search/search_params.rb +1 -1
- data/lib/algolia/models/search/search_params_object.rb +7 -3
- data/lib/algolia/models/search/search_params_query.rb +7 -3
- data/lib/algolia/models/search/search_params_string.rb +7 -3
- data/lib/algolia/models/search/search_query.rb +1 -1
- data/lib/algolia/models/search/search_response.rb +13 -4
- data/lib/algolia/models/search/search_responses.rb +7 -3
- data/lib/algolia/models/search/search_result.rb +1 -1
- data/lib/algolia/models/search/search_rules_params.rb +7 -3
- data/lib/algolia/models/search/search_rules_response.rb +7 -3
- data/lib/algolia/models/search/search_synonyms_params.rb +80 -7
- data/lib/algolia/models/search/search_synonyms_response.rb +13 -4
- data/lib/algolia/models/search/search_user_ids_params.rb +7 -3
- data/lib/algolia/models/search/search_user_ids_response.rb +7 -3
- data/lib/algolia/models/search/semantic_search.rb +7 -3
- data/lib/algolia/models/search/snippet_result.rb +2 -1
- data/lib/algolia/models/search/snippet_result_option.rb +7 -3
- data/lib/algolia/models/search/source.rb +7 -3
- data/lib/algolia/models/search/standard_entries.rb +7 -3
- data/lib/algolia/models/search/synonym_hit.rb +7 -3
- data/lib/algolia/models/search/tag_filters.rb +1 -1
- data/lib/algolia/models/search/time_range.rb +7 -3
- data/lib/algolia/models/search/typo_tolerance.rb +1 -1
- data/lib/algolia/models/search/update_api_key_response.rb +7 -3
- data/lib/algolia/models/search/updated_at_response.rb +7 -3
- data/lib/algolia/models/search/updated_at_with_object_id_response.rb +7 -3
- data/lib/algolia/models/search/updated_rule_response.rb +7 -3
- data/lib/algolia/models/search/user_highlight_result.rb +7 -3
- data/lib/algolia/models/search/user_hit.rb +7 -3
- data/lib/algolia/models/search/user_id.rb +7 -3
- data/lib/algolia/models/search/value.rb +7 -3
- data/lib/algolia/transport/http/http_requester.rb +2 -2
- data/lib/algolia/transport/stateful_host.rb +2 -1
- data/lib/algolia/transport/transport.rb +9 -6
- data/lib/algolia/version.rb +1 -1
- metadata +2 -2
@@ -34,8 +34,8 @@ module Algolia
|
|
34
34
|
new(config)
|
35
35
|
end
|
36
36
|
|
37
|
-
# Send requests to the Algolia REST API.
|
38
37
|
# This method allow you to send requests to the Algolia REST API.
|
38
|
+
|
39
39
|
# @param path [String] Path of the endpoint, anything after \"/1\" must be specified. (required)
|
40
40
|
# @param parameters [Hash<String, Object>] Query parameters to apply to the current query.
|
41
41
|
# @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)
|
@@ -66,19 +66,19 @@ module Algolia
|
|
66
66
|
@api_client.call_api(:DELETE, path, new_options)
|
67
67
|
end
|
68
68
|
|
69
|
-
# Send requests to the Algolia REST API.
|
70
69
|
# This method allow you to send requests to the Algolia REST API.
|
70
|
+
|
71
71
|
# @param path [String] Path of the endpoint, anything after \"/1\" must be specified. (required)
|
72
72
|
# @param parameters [Hash<String, Object>] Query parameters to apply to the current query.
|
73
73
|
# @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)
|
74
74
|
# @return [Object]
|
75
75
|
def custom_delete(path, parameters = nil, request_options = {})
|
76
76
|
response = custom_delete_with_http_info(path, parameters, request_options)
|
77
|
-
deserialize(response.body, request_options[:debug_return_type] || 'Object')
|
77
|
+
@api_client.deserialize(response.body, request_options[:debug_return_type] || 'Object')
|
78
78
|
end
|
79
79
|
|
80
|
-
# Send requests to the Algolia REST API.
|
81
80
|
# This method allow you to send requests to the Algolia REST API.
|
81
|
+
|
82
82
|
# @param path [String] Path of the endpoint, anything after \"/1\" must be specified. (required)
|
83
83
|
# @param parameters [Hash<String, Object>] Query parameters to apply to the current query.
|
84
84
|
# @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)
|
@@ -109,19 +109,19 @@ module Algolia
|
|
109
109
|
@api_client.call_api(:GET, path, new_options)
|
110
110
|
end
|
111
111
|
|
112
|
-
# Send requests to the Algolia REST API.
|
113
112
|
# This method allow you to send requests to the Algolia REST API.
|
113
|
+
|
114
114
|
# @param path [String] Path of the endpoint, anything after \"/1\" must be specified. (required)
|
115
115
|
# @param parameters [Hash<String, Object>] Query parameters to apply to the current query.
|
116
116
|
# @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)
|
117
117
|
# @return [Object]
|
118
118
|
def custom_get(path, parameters = nil, request_options = {})
|
119
119
|
response = custom_get_with_http_info(path, parameters, request_options)
|
120
|
-
deserialize(response.body, request_options[:debug_return_type] || 'Object')
|
120
|
+
@api_client.deserialize(response.body, request_options[:debug_return_type] || 'Object')
|
121
121
|
end
|
122
122
|
|
123
|
-
# Send requests to the Algolia REST API.
|
124
123
|
# This method allow you to send requests to the Algolia REST API.
|
124
|
+
|
125
125
|
# @param path [String] Path of the endpoint, anything after \"/1\" must be specified. (required)
|
126
126
|
# @param parameters [Hash<String, Object>] Query parameters to apply to the current query.
|
127
127
|
# @param body [Object] Parameters to send with the custom request.
|
@@ -153,8 +153,8 @@ module Algolia
|
|
153
153
|
@api_client.call_api(:POST, path, new_options)
|
154
154
|
end
|
155
155
|
|
156
|
-
# Send requests to the Algolia REST API.
|
157
156
|
# This method allow you to send requests to the Algolia REST API.
|
157
|
+
|
158
158
|
# @param path [String] Path of the endpoint, anything after \"/1\" must be specified. (required)
|
159
159
|
# @param parameters [Hash<String, Object>] Query parameters to apply to the current query.
|
160
160
|
# @param body [Object] Parameters to send with the custom request.
|
@@ -162,11 +162,11 @@ module Algolia
|
|
162
162
|
# @return [Object]
|
163
163
|
def custom_post(path, parameters = nil, body = nil, request_options = {})
|
164
164
|
response = custom_post_with_http_info(path, parameters, body, request_options)
|
165
|
-
deserialize(response.body, request_options[:debug_return_type] || 'Object')
|
165
|
+
@api_client.deserialize(response.body, request_options[:debug_return_type] || 'Object')
|
166
166
|
end
|
167
167
|
|
168
|
-
# Send requests to the Algolia REST API.
|
169
168
|
# This method allow you to send requests to the Algolia REST API.
|
169
|
+
|
170
170
|
# @param path [String] Path of the endpoint, anything after \"/1\" must be specified. (required)
|
171
171
|
# @param parameters [Hash<String, Object>] Query parameters to apply to the current query.
|
172
172
|
# @param body [Object] Parameters to send with the custom request.
|
@@ -198,8 +198,8 @@ module Algolia
|
|
198
198
|
@api_client.call_api(:PUT, path, new_options)
|
199
199
|
end
|
200
200
|
|
201
|
-
# Send requests to the Algolia REST API.
|
202
201
|
# This method allow you to send requests to the Algolia REST API.
|
202
|
+
|
203
203
|
# @param path [String] Path of the endpoint, anything after \"/1\" must be specified. (required)
|
204
204
|
# @param parameters [Hash<String, Object>] Query parameters to apply to the current query.
|
205
205
|
# @param body [Object] Parameters to send with the custom request.
|
@@ -207,11 +207,13 @@ module Algolia
|
|
207
207
|
# @return [Object]
|
208
208
|
def custom_put(path, parameters = nil, body = nil, request_options = {})
|
209
209
|
response = custom_put_with_http_info(path, parameters, body, request_options)
|
210
|
-
deserialize(response.body, request_options[:debug_return_type] || 'Object')
|
210
|
+
@api_client.deserialize(response.body, request_options[:debug_return_type] || 'Object')
|
211
211
|
end
|
212
212
|
|
213
|
-
# Get average click position.
|
214
213
|
# Return the average click position for the complete time range and for individual days. > **Note**: If all `positions` have a `clickCount` of `0` or `null`, it means Algolia didn't receive any click events for tracked searches. A _tracked_ search is a search request where the `clickAnalytics` parameter is `true`.
|
214
|
+
#
|
215
|
+
# Required API Key ACLs:
|
216
|
+
# - analytics
|
215
217
|
# @param index [String] Index name to target. (required)
|
216
218
|
# @param start_date [String] Start date (a string in the format `YYYY-MM-DD`) of the period to analyze.
|
217
219
|
# @param end_date [String] End date (a string in the format `YYYY-MM-DD`) of the period to analyze.
|
@@ -257,8 +259,10 @@ module Algolia
|
|
257
259
|
@api_client.call_api(:GET, path, new_options)
|
258
260
|
end
|
259
261
|
|
260
|
-
# Get average click position.
|
261
262
|
# Return the average click position for the complete time range and for individual days. > **Note**: If all `positions` have a `clickCount` of `0` or `null`, it means Algolia didn't receive any click events for tracked searches. A _tracked_ search is a search request where the `clickAnalytics` parameter is `true`.
|
263
|
+
#
|
264
|
+
# Required API Key ACLs:
|
265
|
+
# - analytics
|
262
266
|
# @param index [String] Index name to target. (required)
|
263
267
|
# @param start_date [String] Start date (a string in the format `YYYY-MM-DD`) of the period to analyze.
|
264
268
|
# @param end_date [String] End date (a string in the format `YYYY-MM-DD`) of the period to analyze.
|
@@ -267,11 +271,13 @@ module Algolia
|
|
267
271
|
# @return [GetAverageClickPositionResponse]
|
268
272
|
def get_average_click_position(index, start_date = nil, end_date = nil, tags = nil, request_options = {})
|
269
273
|
response = get_average_click_position_with_http_info(index, start_date, end_date, tags, request_options)
|
270
|
-
deserialize(response.body, request_options[:debug_return_type] || 'Analytics::GetAverageClickPositionResponse')
|
274
|
+
@api_client.deserialize(response.body, request_options[:debug_return_type] || 'Analytics::GetAverageClickPositionResponse')
|
271
275
|
end
|
272
276
|
|
273
|
-
# Get click positions.
|
274
277
|
# Show the number of clicks events and their associated position in the search results. > **Note**: If all `positions` have a `clickCount` of `0` or `null`, it means Algolia didn't receive any click events for tracked searches. A _tracked_ search is a search request where the `clickAnalytics` parameter is `true`.
|
278
|
+
#
|
279
|
+
# Required API Key ACLs:
|
280
|
+
# - analytics
|
275
281
|
# @param index [String] Index name to target. (required)
|
276
282
|
# @param start_date [String] Start date (a string in the format `YYYY-MM-DD`) of the period to analyze.
|
277
283
|
# @param end_date [String] End date (a string in the format `YYYY-MM-DD`) of the period to analyze.
|
@@ -317,8 +323,10 @@ module Algolia
|
|
317
323
|
@api_client.call_api(:GET, path, new_options)
|
318
324
|
end
|
319
325
|
|
320
|
-
# Get click positions.
|
321
326
|
# Show the number of clicks events and their associated position in the search results. > **Note**: If all `positions` have a `clickCount` of `0` or `null`, it means Algolia didn't receive any click events for tracked searches. A _tracked_ search is a search request where the `clickAnalytics` parameter is `true`.
|
327
|
+
#
|
328
|
+
# Required API Key ACLs:
|
329
|
+
# - analytics
|
322
330
|
# @param index [String] Index name to target. (required)
|
323
331
|
# @param start_date [String] Start date (a string in the format `YYYY-MM-DD`) of the period to analyze.
|
324
332
|
# @param end_date [String] End date (a string in the format `YYYY-MM-DD`) of the period to analyze.
|
@@ -327,11 +335,13 @@ module Algolia
|
|
327
335
|
# @return [GetClickPositionsResponse]
|
328
336
|
def get_click_positions(index, start_date = nil, end_date = nil, tags = nil, request_options = {})
|
329
337
|
response = get_click_positions_with_http_info(index, start_date, end_date, tags, request_options)
|
330
|
-
deserialize(response.body, request_options[:debug_return_type] || 'Analytics::GetClickPositionsResponse')
|
338
|
+
@api_client.deserialize(response.body, request_options[:debug_return_type] || 'Analytics::GetClickPositionsResponse')
|
331
339
|
end
|
332
340
|
|
333
|
-
# Get click-through rate (CTR).
|
334
341
|
# Returns a [click-through rate (CTR)](https://www.algolia.com/doc/guides/search-analytics/concepts/metrics/#click-through-rate).
|
342
|
+
#
|
343
|
+
# Required API Key ACLs:
|
344
|
+
# - analytics
|
335
345
|
# @param index [String] Index name to target. (required)
|
336
346
|
# @param start_date [String] Start date (a string in the format `YYYY-MM-DD`) of the period to analyze.
|
337
347
|
# @param end_date [String] End date (a string in the format `YYYY-MM-DD`) of the period to analyze.
|
@@ -377,8 +387,10 @@ module Algolia
|
|
377
387
|
@api_client.call_api(:GET, path, new_options)
|
378
388
|
end
|
379
389
|
|
380
|
-
# Get click-through rate (CTR).
|
381
390
|
# Returns a [click-through rate (CTR)](https://www.algolia.com/doc/guides/search-analytics/concepts/metrics/#click-through-rate).
|
391
|
+
#
|
392
|
+
# Required API Key ACLs:
|
393
|
+
# - analytics
|
382
394
|
# @param index [String] Index name to target. (required)
|
383
395
|
# @param start_date [String] Start date (a string in the format `YYYY-MM-DD`) of the period to analyze.
|
384
396
|
# @param end_date [String] End date (a string in the format `YYYY-MM-DD`) of the period to analyze.
|
@@ -387,11 +399,13 @@ module Algolia
|
|
387
399
|
# @return [GetClickThroughRateResponse]
|
388
400
|
def get_click_through_rate(index, start_date = nil, end_date = nil, tags = nil, request_options = {})
|
389
401
|
response = get_click_through_rate_with_http_info(index, start_date, end_date, tags, request_options)
|
390
|
-
deserialize(response.body, request_options[:debug_return_type] || 'Analytics::GetClickThroughRateResponse')
|
402
|
+
@api_client.deserialize(response.body, request_options[:debug_return_type] || 'Analytics::GetClickThroughRateResponse')
|
391
403
|
end
|
392
404
|
|
393
|
-
# Get conversion rate (CR).
|
394
405
|
# Return a [conversion rate](https://www.algolia.com/doc/guides/search-analytics/concepts/metrics/#conversion-rate).
|
406
|
+
#
|
407
|
+
# Required API Key ACLs:
|
408
|
+
# - analytics
|
395
409
|
# @param index [String] Index name to target. (required)
|
396
410
|
# @param start_date [String] Start date (a string in the format `YYYY-MM-DD`) of the period to analyze.
|
397
411
|
# @param end_date [String] End date (a string in the format `YYYY-MM-DD`) of the period to analyze.
|
@@ -437,8 +451,10 @@ module Algolia
|
|
437
451
|
@api_client.call_api(:GET, path, new_options)
|
438
452
|
end
|
439
453
|
|
440
|
-
# Get conversion rate (CR).
|
441
454
|
# Return a [conversion rate](https://www.algolia.com/doc/guides/search-analytics/concepts/metrics/#conversion-rate).
|
455
|
+
#
|
456
|
+
# Required API Key ACLs:
|
457
|
+
# - analytics
|
442
458
|
# @param index [String] Index name to target. (required)
|
443
459
|
# @param start_date [String] Start date (a string in the format `YYYY-MM-DD`) of the period to analyze.
|
444
460
|
# @param end_date [String] End date (a string in the format `YYYY-MM-DD`) of the period to analyze.
|
@@ -447,11 +463,13 @@ module Algolia
|
|
447
463
|
# @return [GetConversationRateResponse]
|
448
464
|
def get_conversation_rate(index, start_date = nil, end_date = nil, tags = nil, request_options = {})
|
449
465
|
response = get_conversation_rate_with_http_info(index, start_date, end_date, tags, request_options)
|
450
|
-
deserialize(response.body, request_options[:debug_return_type] || 'Analytics::GetConversationRateResponse')
|
466
|
+
@api_client.deserialize(response.body, request_options[:debug_return_type] || 'Analytics::GetConversationRateResponse')
|
451
467
|
end
|
452
468
|
|
453
|
-
# Get no click rate.
|
454
469
|
# Returns the rate at which searches don't lead to any clicks. The endpoint returns a value for the complete given time range, as well as a value per day. It also returns the count of searches and searches without clicks.
|
470
|
+
#
|
471
|
+
# Required API Key ACLs:
|
472
|
+
# - analytics
|
455
473
|
# @param index [String] Index name to target. (required)
|
456
474
|
# @param start_date [String] Start date (a string in the format `YYYY-MM-DD`) of the period to analyze.
|
457
475
|
# @param end_date [String] End date (a string in the format `YYYY-MM-DD`) of the period to analyze.
|
@@ -497,8 +515,10 @@ module Algolia
|
|
497
515
|
@api_client.call_api(:GET, path, new_options)
|
498
516
|
end
|
499
517
|
|
500
|
-
# Get no click rate.
|
501
518
|
# Returns the rate at which searches don't lead to any clicks. The endpoint returns a value for the complete given time range, as well as a value per day. It also returns the count of searches and searches without clicks.
|
519
|
+
#
|
520
|
+
# Required API Key ACLs:
|
521
|
+
# - analytics
|
502
522
|
# @param index [String] Index name to target. (required)
|
503
523
|
# @param start_date [String] Start date (a string in the format `YYYY-MM-DD`) of the period to analyze.
|
504
524
|
# @param end_date [String] End date (a string in the format `YYYY-MM-DD`) of the period to analyze.
|
@@ -507,11 +527,13 @@ module Algolia
|
|
507
527
|
# @return [GetNoClickRateResponse]
|
508
528
|
def get_no_click_rate(index, start_date = nil, end_date = nil, tags = nil, request_options = {})
|
509
529
|
response = get_no_click_rate_with_http_info(index, start_date, end_date, tags, request_options)
|
510
|
-
deserialize(response.body, request_options[:debug_return_type] || 'Analytics::GetNoClickRateResponse')
|
530
|
+
@api_client.deserialize(response.body, request_options[:debug_return_type] || 'Analytics::GetNoClickRateResponse')
|
511
531
|
end
|
512
532
|
|
513
|
-
# Get no results rate.
|
514
533
|
# Returns the rate at which searches didn't return any results.
|
534
|
+
#
|
535
|
+
# Required API Key ACLs:
|
536
|
+
# - analytics
|
515
537
|
# @param index [String] Index name to target. (required)
|
516
538
|
# @param start_date [String] Start date (a string in the format `YYYY-MM-DD`) of the period to analyze.
|
517
539
|
# @param end_date [String] End date (a string in the format `YYYY-MM-DD`) of the period to analyze.
|
@@ -557,8 +579,10 @@ module Algolia
|
|
557
579
|
@api_client.call_api(:GET, path, new_options)
|
558
580
|
end
|
559
581
|
|
560
|
-
# Get no results rate.
|
561
582
|
# Returns the rate at which searches didn't return any results.
|
583
|
+
#
|
584
|
+
# Required API Key ACLs:
|
585
|
+
# - analytics
|
562
586
|
# @param index [String] Index name to target. (required)
|
563
587
|
# @param start_date [String] Start date (a string in the format `YYYY-MM-DD`) of the period to analyze.
|
564
588
|
# @param end_date [String] End date (a string in the format `YYYY-MM-DD`) of the period to analyze.
|
@@ -567,11 +591,13 @@ module Algolia
|
|
567
591
|
# @return [GetNoResultsRateResponse]
|
568
592
|
def get_no_results_rate(index, start_date = nil, end_date = nil, tags = nil, request_options = {})
|
569
593
|
response = get_no_results_rate_with_http_info(index, start_date, end_date, tags, request_options)
|
570
|
-
deserialize(response.body, request_options[:debug_return_type] || 'Analytics::GetNoResultsRateResponse')
|
594
|
+
@api_client.deserialize(response.body, request_options[:debug_return_type] || 'Analytics::GetNoResultsRateResponse')
|
571
595
|
end
|
572
596
|
|
573
|
-
# Get number of searches.
|
574
597
|
# Returns the number of searches within a time range.
|
598
|
+
#
|
599
|
+
# Required API Key ACLs:
|
600
|
+
# - analytics
|
575
601
|
# @param index [String] Index name to target. (required)
|
576
602
|
# @param start_date [String] Start date (a string in the format `YYYY-MM-DD`) of the period to analyze.
|
577
603
|
# @param end_date [String] End date (a string in the format `YYYY-MM-DD`) of the period to analyze.
|
@@ -617,8 +643,10 @@ module Algolia
|
|
617
643
|
@api_client.call_api(:GET, path, new_options)
|
618
644
|
end
|
619
645
|
|
620
|
-
# Get number of searches.
|
621
646
|
# Returns the number of searches within a time range.
|
647
|
+
#
|
648
|
+
# Required API Key ACLs:
|
649
|
+
# - analytics
|
622
650
|
# @param index [String] Index name to target. (required)
|
623
651
|
# @param start_date [String] Start date (a string in the format `YYYY-MM-DD`) of the period to analyze.
|
624
652
|
# @param end_date [String] End date (a string in the format `YYYY-MM-DD`) of the period to analyze.
|
@@ -627,11 +655,13 @@ module Algolia
|
|
627
655
|
# @return [GetSearchesCountResponse]
|
628
656
|
def get_searches_count(index, start_date = nil, end_date = nil, tags = nil, request_options = {})
|
629
657
|
response = get_searches_count_with_http_info(index, start_date, end_date, tags, request_options)
|
630
|
-
deserialize(response.body, request_options[:debug_return_type] || 'Analytics::GetSearchesCountResponse')
|
658
|
+
@api_client.deserialize(response.body, request_options[:debug_return_type] || 'Analytics::GetSearchesCountResponse')
|
631
659
|
end
|
632
660
|
|
633
|
-
# Get top searches with no clicks.
|
634
661
|
# Return the most popular of the last 1,000 searches that didn't lead to any clicks.
|
662
|
+
#
|
663
|
+
# Required API Key ACLs:
|
664
|
+
# - analytics
|
635
665
|
# @param index [String] Index name to target. (required)
|
636
666
|
# @param start_date [String] Start date (a string in the format `YYYY-MM-DD`) of the period to analyze.
|
637
667
|
# @param end_date [String] End date (a string in the format `YYYY-MM-DD`) of the period to analyze.
|
@@ -681,8 +711,10 @@ module Algolia
|
|
681
711
|
@api_client.call_api(:GET, path, new_options)
|
682
712
|
end
|
683
713
|
|
684
|
-
# Get top searches with no clicks.
|
685
714
|
# Return the most popular of the last 1,000 searches that didn't lead to any clicks.
|
715
|
+
#
|
716
|
+
# Required API Key ACLs:
|
717
|
+
# - analytics
|
686
718
|
# @param index [String] Index name to target. (required)
|
687
719
|
# @param start_date [String] Start date (a string in the format `YYYY-MM-DD`) of the period to analyze.
|
688
720
|
# @param end_date [String] End date (a string in the format `YYYY-MM-DD`) of the period to analyze.
|
@@ -693,11 +725,13 @@ module Algolia
|
|
693
725
|
# @return [GetSearchesNoClicksResponse]
|
694
726
|
def get_searches_no_clicks(index, start_date = nil, end_date = nil, limit = nil, offset = nil, tags = nil, request_options = {})
|
695
727
|
response = get_searches_no_clicks_with_http_info(index, start_date, end_date, limit, offset, tags, request_options)
|
696
|
-
deserialize(response.body, request_options[:debug_return_type] || 'Analytics::GetSearchesNoClicksResponse')
|
728
|
+
@api_client.deserialize(response.body, request_options[:debug_return_type] || 'Analytics::GetSearchesNoClicksResponse')
|
697
729
|
end
|
698
730
|
|
699
|
-
# Get top searches with no results.
|
700
731
|
# Returns the most popular of the latest 1,000 searches that didn't return any results.
|
732
|
+
#
|
733
|
+
# Required API Key ACLs:
|
734
|
+
# - analytics
|
701
735
|
# @param index [String] Index name to target. (required)
|
702
736
|
# @param start_date [String] Start date (a string in the format `YYYY-MM-DD`) of the period to analyze.
|
703
737
|
# @param end_date [String] End date (a string in the format `YYYY-MM-DD`) of the period to analyze.
|
@@ -747,8 +781,10 @@ module Algolia
|
|
747
781
|
@api_client.call_api(:GET, path, new_options)
|
748
782
|
end
|
749
783
|
|
750
|
-
# Get top searches with no results.
|
751
784
|
# Returns the most popular of the latest 1,000 searches that didn't return any results.
|
785
|
+
#
|
786
|
+
# Required API Key ACLs:
|
787
|
+
# - analytics
|
752
788
|
# @param index [String] Index name to target. (required)
|
753
789
|
# @param start_date [String] Start date (a string in the format `YYYY-MM-DD`) of the period to analyze.
|
754
790
|
# @param end_date [String] End date (a string in the format `YYYY-MM-DD`) of the period to analyze.
|
@@ -759,11 +795,13 @@ module Algolia
|
|
759
795
|
# @return [GetSearchesNoResultsResponse]
|
760
796
|
def get_searches_no_results(index, start_date = nil, end_date = nil, limit = nil, offset = nil, tags = nil, request_options = {})
|
761
797
|
response = get_searches_no_results_with_http_info(index, start_date, end_date, limit, offset, tags, request_options)
|
762
|
-
deserialize(response.body, request_options[:debug_return_type] || 'Analytics::GetSearchesNoResultsResponse')
|
798
|
+
@api_client.deserialize(response.body, request_options[:debug_return_type] || 'Analytics::GetSearchesNoResultsResponse')
|
763
799
|
end
|
764
800
|
|
765
|
-
# Get Analytics API status.
|
766
801
|
# Return the latest update time of the Analytics API for an index. If the index has been recently created or no search has been performed yet, `updatedAt` will be `null`. > **Note**: The Analytics API is updated every 5&nbsp;minutes.
|
802
|
+
#
|
803
|
+
# Required API Key ACLs:
|
804
|
+
# - analytics
|
767
805
|
# @param index [String] Index name to target. (required)
|
768
806
|
# @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)
|
769
807
|
# @return [Http::Response] the response
|
@@ -793,18 +831,22 @@ module Algolia
|
|
793
831
|
@api_client.call_api(:GET, path, new_options)
|
794
832
|
end
|
795
833
|
|
796
|
-
# Get Analytics API status.
|
797
834
|
# Return the latest update time of the Analytics API for an index. If the index has been recently created or no search has been performed yet, `updatedAt` will be `null`. > **Note**: The Analytics API is updated every 5 minutes.
|
835
|
+
#
|
836
|
+
# Required API Key ACLs:
|
837
|
+
# - analytics
|
798
838
|
# @param index [String] Index name to target. (required)
|
799
839
|
# @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)
|
800
840
|
# @return [GetStatusResponse]
|
801
841
|
def get_status(index, request_options = {})
|
802
842
|
response = get_status_with_http_info(index, request_options)
|
803
|
-
deserialize(response.body, request_options[:debug_return_type] || 'Analytics::GetStatusResponse')
|
843
|
+
@api_client.deserialize(response.body, request_options[:debug_return_type] || 'Analytics::GetStatusResponse')
|
804
844
|
end
|
805
845
|
|
806
|
-
# Get top countries.
|
807
846
|
# Returns top countries. Limited to the 1,000 most frequent ones.
|
847
|
+
#
|
848
|
+
# Required API Key ACLs:
|
849
|
+
# - analytics
|
808
850
|
# @param index [String] Index name to target. (required)
|
809
851
|
# @param start_date [String] Start date (a string in the format `YYYY-MM-DD`) of the period to analyze.
|
810
852
|
# @param end_date [String] End date (a string in the format `YYYY-MM-DD`) of the period to analyze.
|
@@ -854,8 +896,10 @@ module Algolia
|
|
854
896
|
@api_client.call_api(:GET, path, new_options)
|
855
897
|
end
|
856
898
|
|
857
|
-
# Get top countries.
|
858
899
|
# Returns top countries. Limited to the 1,000 most frequent ones.
|
900
|
+
#
|
901
|
+
# Required API Key ACLs:
|
902
|
+
# - analytics
|
859
903
|
# @param index [String] Index name to target. (required)
|
860
904
|
# @param start_date [String] Start date (a string in the format `YYYY-MM-DD`) of the period to analyze.
|
861
905
|
# @param end_date [String] End date (a string in the format `YYYY-MM-DD`) of the period to analyze.
|
@@ -866,11 +910,13 @@ module Algolia
|
|
866
910
|
# @return [GetTopCountriesResponse]
|
867
911
|
def get_top_countries(index, start_date = nil, end_date = nil, limit = nil, offset = nil, tags = nil, request_options = {})
|
868
912
|
response = get_top_countries_with_http_info(index, start_date, end_date, limit, offset, tags, request_options)
|
869
|
-
deserialize(response.body, request_options[:debug_return_type] || 'Analytics::GetTopCountriesResponse')
|
913
|
+
@api_client.deserialize(response.body, request_options[:debug_return_type] || 'Analytics::GetTopCountriesResponse')
|
870
914
|
end
|
871
915
|
|
872
|
-
# Get top filterable attributes.
|
873
916
|
# Return the most popular [filterable attributes](https://www.algolia.com/doc/guides/managing-results/refine-results/filtering/) in the 1,000 most recently used filters.
|
917
|
+
#
|
918
|
+
# Required API Key ACLs:
|
919
|
+
# - analytics
|
874
920
|
# @param index [String] Index name to target. (required)
|
875
921
|
# @param search [String] User query.
|
876
922
|
# @param start_date [String] Start date (a string in the format `YYYY-MM-DD`) of the period to analyze.
|
@@ -922,8 +968,10 @@ module Algolia
|
|
922
968
|
@api_client.call_api(:GET, path, new_options)
|
923
969
|
end
|
924
970
|
|
925
|
-
# Get top filterable attributes.
|
926
971
|
# Return the most popular [filterable attributes](https://www.algolia.com/doc/guides/managing-results/refine-results/filtering/) in the 1,000 most recently used filters.
|
972
|
+
#
|
973
|
+
# Required API Key ACLs:
|
974
|
+
# - analytics
|
927
975
|
# @param index [String] Index name to target. (required)
|
928
976
|
# @param search [String] User query.
|
929
977
|
# @param start_date [String] Start date (a string in the format `YYYY-MM-DD`) of the period to analyze.
|
@@ -935,11 +983,13 @@ module Algolia
|
|
935
983
|
# @return [GetTopFilterAttributesResponse]
|
936
984
|
def get_top_filter_attributes(index, search = nil, start_date = nil, end_date = nil, limit = nil, offset = nil, tags = nil, request_options = {})
|
937
985
|
response = get_top_filter_attributes_with_http_info(index, search, start_date, end_date, limit, offset, tags, request_options)
|
938
|
-
deserialize(response.body, request_options[:debug_return_type] || 'Analytics::GetTopFilterAttributesResponse')
|
986
|
+
@api_client.deserialize(response.body, request_options[:debug_return_type] || 'Analytics::GetTopFilterAttributesResponse')
|
939
987
|
end
|
940
988
|
|
941
|
-
# Get top filter values for an attribute.
|
942
989
|
# Returns the most popular filter values for an attribute in the 1,000 most recently used filters.
|
990
|
+
#
|
991
|
+
# Required API Key ACLs:
|
992
|
+
# - analytics
|
943
993
|
# @param attribute [String] Attribute name. (required)
|
944
994
|
# @param index [String] Index name to target. (required)
|
945
995
|
# @param search [String] User query.
|
@@ -970,7 +1020,7 @@ module Algolia
|
|
970
1020
|
raise ArgumentError, "invalid value for '\"end_date\"' when calling AnalyticsClient.get_top_filter_for_attribute, must conform to the pattern #{pattern}."
|
971
1021
|
end
|
972
1022
|
|
973
|
-
path = '/2/filters/{attribute}'.sub('{' + 'attribute' + '}',
|
1023
|
+
path = '/2/filters/{attribute}'.sub('{' + 'attribute' + '}', Transport.encode_uri(attribute.to_s))
|
974
1024
|
query_params = {}
|
975
1025
|
query_params[:index] = index
|
976
1026
|
query_params[:search] = search unless search.nil?
|
@@ -996,8 +1046,10 @@ module Algolia
|
|
996
1046
|
@api_client.call_api(:GET, path, new_options)
|
997
1047
|
end
|
998
1048
|
|
999
|
-
# Get top filter values for an attribute.
|
1000
1049
|
# Returns the most popular filter values for an attribute in the 1,000 most recently used filters.
|
1050
|
+
#
|
1051
|
+
# Required API Key ACLs:
|
1052
|
+
# - analytics
|
1001
1053
|
# @param attribute [String] Attribute name. (required)
|
1002
1054
|
# @param index [String] Index name to target. (required)
|
1003
1055
|
# @param search [String] User query.
|
@@ -1010,11 +1062,13 @@ module Algolia
|
|
1010
1062
|
# @return [GetTopFilterForAttributeResponse]
|
1011
1063
|
def get_top_filter_for_attribute(attribute, index, search = nil, start_date = nil, end_date = nil, limit = nil, offset = nil, tags = nil, request_options = {})
|
1012
1064
|
response = get_top_filter_for_attribute_with_http_info(attribute, index, search, start_date, end_date, limit, offset, tags, request_options)
|
1013
|
-
deserialize(response.body, request_options[:debug_return_type] || 'Analytics::GetTopFilterForAttributeResponse')
|
1065
|
+
@api_client.deserialize(response.body, request_options[:debug_return_type] || 'Analytics::GetTopFilterForAttributeResponse')
|
1014
1066
|
end
|
1015
1067
|
|
1016
|
-
# Get top filters for a no result search.
|
1017
1068
|
# Returns top filters for filter-enabled searches that don't return results. Limited to the 1,000 most recently used filters.
|
1069
|
+
#
|
1070
|
+
# Required API Key ACLs:
|
1071
|
+
# - analytics
|
1018
1072
|
# @param index [String] Index name to target. (required)
|
1019
1073
|
# @param search [String] User query.
|
1020
1074
|
# @param start_date [String] Start date (a string in the format `YYYY-MM-DD`) of the period to analyze.
|
@@ -1066,8 +1120,10 @@ module Algolia
|
|
1066
1120
|
@api_client.call_api(:GET, path, new_options)
|
1067
1121
|
end
|
1068
1122
|
|
1069
|
-
# Get top filters for a no result search.
|
1070
1123
|
# Returns top filters for filter-enabled searches that don't return results. Limited to the 1,000 most recently used filters.
|
1124
|
+
#
|
1125
|
+
# Required API Key ACLs:
|
1126
|
+
# - analytics
|
1071
1127
|
# @param index [String] Index name to target. (required)
|
1072
1128
|
# @param search [String] User query.
|
1073
1129
|
# @param start_date [String] Start date (a string in the format `YYYY-MM-DD`) of the period to analyze.
|
@@ -1079,11 +1135,13 @@ module Algolia
|
|
1079
1135
|
# @return [GetTopFiltersNoResultsResponse]
|
1080
1136
|
def get_top_filters_no_results(index, search = nil, start_date = nil, end_date = nil, limit = nil, offset = nil, tags = nil, request_options = {})
|
1081
1137
|
response = get_top_filters_no_results_with_http_info(index, search, start_date, end_date, limit, offset, tags, request_options)
|
1082
|
-
deserialize(response.body, request_options[:debug_return_type] || 'Analytics::GetTopFiltersNoResultsResponse')
|
1138
|
+
@api_client.deserialize(response.body, request_options[:debug_return_type] || 'Analytics::GetTopFiltersNoResultsResponse')
|
1083
1139
|
end
|
1084
1140
|
|
1085
|
-
# Get top hits.
|
1086
1141
|
# Return the most popular clicked results in the last 1,000 searches.
|
1142
|
+
#
|
1143
|
+
# Required API Key ACLs:
|
1144
|
+
# - analytics
|
1087
1145
|
# @param index [String] Index name to target. (required)
|
1088
1146
|
# @param search [String] User query.
|
1089
1147
|
# @param click_analytics [Boolean] Whether to include [click and conversion](https://www.algolia.com/doc/guides/sending-events/getting-started/) rates for a search. (default to false)
|
@@ -1137,8 +1195,10 @@ module Algolia
|
|
1137
1195
|
@api_client.call_api(:GET, path, new_options)
|
1138
1196
|
end
|
1139
1197
|
|
1140
|
-
# Get top hits.
|
1141
1198
|
# Return the most popular clicked results in the last 1,000 searches.
|
1199
|
+
#
|
1200
|
+
# Required API Key ACLs:
|
1201
|
+
# - analytics
|
1142
1202
|
# @param index [String] Index name to target. (required)
|
1143
1203
|
# @param search [String] User query.
|
1144
1204
|
# @param click_analytics [Boolean] Whether to include [click and conversion](https://www.algolia.com/doc/guides/sending-events/getting-started/) rates for a search. (default to false)
|
@@ -1151,11 +1211,13 @@ module Algolia
|
|
1151
1211
|
# @return [GetTopHitsResponse]
|
1152
1212
|
def get_top_hits(index, search = nil, click_analytics = nil, start_date = nil, end_date = nil, limit = nil, offset = nil, tags = nil, request_options = {})
|
1153
1213
|
response = get_top_hits_with_http_info(index, search, click_analytics, start_date, end_date, limit, offset, tags, request_options)
|
1154
|
-
deserialize(response.body, request_options[:debug_return_type] || 'Analytics::GetTopHitsResponse')
|
1214
|
+
@api_client.deserialize(response.body, request_options[:debug_return_type] || 'Analytics::GetTopHitsResponse')
|
1155
1215
|
end
|
1156
1216
|
|
1157
|
-
# Get top searches.
|
1158
1217
|
# Returns the most popular of the latest 1,000 searches. For each search, also returns the number of hits.
|
1218
|
+
#
|
1219
|
+
# Required API Key ACLs:
|
1220
|
+
# - analytics
|
1159
1221
|
# @param index [String] Index name to target. (required)
|
1160
1222
|
# @param click_analytics [Boolean] Whether to include [click and conversion](https://www.algolia.com/doc/guides/sending-events/getting-started/) rates for a search. (default to false)
|
1161
1223
|
# @param start_date [String] Start date (a string in the format `YYYY-MM-DD`) of the period to analyze.
|
@@ -1212,8 +1274,10 @@ module Algolia
|
|
1212
1274
|
@api_client.call_api(:GET, path, new_options)
|
1213
1275
|
end
|
1214
1276
|
|
1215
|
-
# Get top searches.
|
1216
1277
|
# Returns the most popular of the latest 1,000 searches. For each search, also returns the number of hits.
|
1278
|
+
#
|
1279
|
+
# Required API Key ACLs:
|
1280
|
+
# - analytics
|
1217
1281
|
# @param index [String] Index name to target. (required)
|
1218
1282
|
# @param click_analytics [Boolean] Whether to include [click and conversion](https://www.algolia.com/doc/guides/sending-events/getting-started/) rates for a search. (default to false)
|
1219
1283
|
# @param start_date [String] Start date (a string in the format `YYYY-MM-DD`) of the period to analyze.
|
@@ -1228,11 +1292,13 @@ module Algolia
|
|
1228
1292
|
def get_top_searches(index, click_analytics = nil, start_date = nil, end_date = nil, order_by = nil, direction = nil, limit = nil, offset = nil, tags = nil,
|
1229
1293
|
request_options = {})
|
1230
1294
|
response = get_top_searches_with_http_info(index, click_analytics, start_date, end_date, order_by, direction, limit, offset, tags, request_options)
|
1231
|
-
deserialize(response.body, request_options[:debug_return_type] || 'Analytics::GetTopSearchesResponse')
|
1295
|
+
@api_client.deserialize(response.body, request_options[:debug_return_type] || 'Analytics::GetTopSearchesResponse')
|
1232
1296
|
end
|
1233
1297
|
|
1234
|
-
# Get user count.
|
1235
1298
|
# Return the count of unique users.
|
1299
|
+
#
|
1300
|
+
# Required API Key ACLs:
|
1301
|
+
# - analytics
|
1236
1302
|
# @param index [String] Index name to target. (required)
|
1237
1303
|
# @param start_date [String] Start date (a string in the format `YYYY-MM-DD`) of the period to analyze.
|
1238
1304
|
# @param end_date [String] End date (a string in the format `YYYY-MM-DD`) of the period to analyze.
|
@@ -1278,8 +1344,10 @@ module Algolia
|
|
1278
1344
|
@api_client.call_api(:GET, path, new_options)
|
1279
1345
|
end
|
1280
1346
|
|
1281
|
-
# Get user count.
|
1282
1347
|
# Return the count of unique users.
|
1348
|
+
#
|
1349
|
+
# Required API Key ACLs:
|
1350
|
+
# - analytics
|
1283
1351
|
# @param index [String] Index name to target. (required)
|
1284
1352
|
# @param start_date [String] Start date (a string in the format `YYYY-MM-DD`) of the period to analyze.
|
1285
1353
|
# @param end_date [String] End date (a string in the format `YYYY-MM-DD`) of the period to analyze.
|
@@ -1288,7 +1356,7 @@ module Algolia
|
|
1288
1356
|
# @return [GetUsersCountResponse]
|
1289
1357
|
def get_users_count(index, start_date = nil, end_date = nil, tags = nil, request_options = {})
|
1290
1358
|
response = get_users_count_with_http_info(index, start_date, end_date, tags, request_options)
|
1291
|
-
deserialize(response.body, request_options[:debug_return_type] || 'Analytics::GetUsersCountResponse')
|
1359
|
+
@api_client.deserialize(response.body, request_options[:debug_return_type] || 'Analytics::GetUsersCountResponse')
|
1292
1360
|
end
|
1293
1361
|
end
|
1294
1362
|
end
|