algolia 3.0.0.alpha.6 → 3.0.0.alpha.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.openapi-generator/VERSION +1 -1
- data/CHANGELOG.md +4 -0
- data/Gemfile.lock +2 -2
- data/lib/algolia/api/abtesting_client.rb +41 -21
- data/lib/algolia/api/analytics_client.rb +111 -43
- data/lib/algolia/api/ingestion_client.rb +334 -94
- data/lib/algolia/api/insights_client.rb +13 -13
- data/lib/algolia/api/monitoring_client.rb +32 -33
- data/lib/algolia/api/personalization_client.rb +34 -18
- data/lib/algolia/api/query_suggestions_client.rb +55 -27
- data/lib/algolia/api/recommend_client.rb +46 -26
- data/lib/algolia/api/search_client.rb +459 -171
- data/lib/algolia/api_client.rb +0 -4
- data/lib/algolia/models/abtesting/ab_test.rb +7 -1
- data/lib/algolia/models/abtesting/list_ab_tests_response.rb +3 -1
- data/lib/algolia/models/abtesting/variant.rb +24 -5
- data/lib/algolia/models/analytics/click_through_rate_event.rb +3 -1
- data/lib/algolia/models/analytics/conversion_rate_event.rb +3 -1
- data/lib/algolia/models/analytics/get_click_through_rate_response.rb +3 -1
- data/lib/algolia/models/analytics/get_conversation_rate_response.rb +3 -1
- data/lib/algolia/models/analytics/top_hit_with_analytics.rb +3 -1
- data/lib/algolia/models/analytics/top_search_with_analytics.rb +3 -1
- data/lib/algolia/models/query-suggestions/base_query_suggestions_configuration_response.rb +1 -11
- data/lib/algolia/models/query-suggestions/query_suggestions_configuration_response.rb +1 -11
- data/lib/algolia/models/recommend/highlight_result.rb +1 -0
- data/lib/algolia/models/recommend/snippet_result.rb +1 -0
- data/lib/algolia/models/search/highlight_result.rb +1 -0
- data/lib/algolia/models/search/snippet_result.rb +1 -0
- 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 +7 -4
- 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,8 +66,8 @@ 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)
|
@@ -77,8 +77,8 @@ module Algolia
|
|
77
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,8 +109,8 @@ 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)
|
@@ -120,8 +120,8 @@ module Algolia
|
|
120
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.
|
@@ -165,8 +165,8 @@ module Algolia
|
|
165
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.
|
@@ -210,8 +210,10 @@ module Algolia
|
|
210
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.
|
@@ -270,8 +274,10 @@ module Algolia
|
|
270
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.
|
@@ -330,8 +338,10 @@ module Algolia
|
|
330
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.
|
@@ -390,8 +402,10 @@ module Algolia
|
|
390
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.
|
@@ -450,8 +466,10 @@ module Algolia
|
|
450
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.
|
@@ -510,8 +530,10 @@ module Algolia
|
|
510
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.
|
@@ -570,8 +594,10 @@ module Algolia
|
|
570
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.
|
@@ -630,8 +658,10 @@ module Algolia
|
|
630
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.
|
@@ -696,8 +728,10 @@ module Algolia
|
|
696
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.
|
@@ -762,8 +798,10 @@ module Algolia
|
|
762
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,8 +831,10 @@ 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]
|
@@ -803,8 +843,10 @@ module Algolia
|
|
803
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.
|
@@ -869,8 +913,10 @@ module Algolia
|
|
869
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.
|
@@ -938,8 +986,10 @@ module Algolia
|
|
938
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.
|
@@ -1013,8 +1065,10 @@ module Algolia
|
|
1013
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.
|
@@ -1082,8 +1138,10 @@ module Algolia
|
|
1082
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)
|
@@ -1154,8 +1214,10 @@ module Algolia
|
|
1154
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.
|
@@ -1231,8 +1295,10 @@ module Algolia
|
|
1231
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.
|