@algolia/n8n-nodes-algolia 0.5.2 → 0.6.0
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.
- package/README.md +80 -8
- package/dist/nodes/Algolia/Algolia.node.js +1 -1
- package/dist/nodes/Algolia/specs/abtesting-v3.json +1701 -0
- package/dist/nodes/Algolia/specs/abtesting.json +1580 -0
- package/dist/nodes/Algolia/specs/advanced-personalization.json +1667 -0
- package/dist/nodes/Algolia/specs/analytics.json +3138 -0
- package/dist/nodes/Algolia/specs/composition.json +4193 -0
- package/dist/nodes/Algolia/specs/crawler.json +3354 -0
- package/dist/nodes/Algolia/specs/ingestion.json +6368 -0
- package/dist/nodes/Algolia/specs/insights.json +1843 -0
- package/dist/nodes/Algolia/specs/monitoring.json +1263 -0
- package/dist/nodes/Algolia/specs/personalization.json +716 -0
- package/dist/nodes/Algolia/specs/query-suggestions.json +1143 -0
- package/dist/nodes/Algolia/specs/recommend.json +3681 -0
- package/dist/nodes/Algolia/specs/search.json +1365 -397
- package/package.json +5 -4
|
@@ -0,0 +1,1143 @@
|
|
|
1
|
+
{
|
|
2
|
+
"openapi": "3.0.2",
|
|
3
|
+
"info": {
|
|
4
|
+
"title": "Query Suggestions API",
|
|
5
|
+
"description": "The Query Suggestions API lets you manage your Query Suggestions configurations.\nQuery Suggestions add new indices to your Algolia application with popular search queries, external suggestions, or facet values.\nIn your user interface, you can query the Query Suggestions indices like regular indices and add [suggested searches](https://www.algolia.com/doc/guides/building-search-ui/ui-and-ux-patterns/query-suggestions/js/) to guide users and speed up their search.\n\n## Base URLs\n\nThe base URLs for requests to the Query Suggestions API are:\n\n- `https://query-suggestions.us.algolia.com`\n- `https://query-suggestions.eu.algolia.com`\n\nUse the URL that matches your [analytics region](https://dashboard.algolia.com/account/infrastructure/analytics).\n\n**All requests must use HTTPS.**\n\n## Authentication\n\nTo authenticate your API requests, add these headers:\n\n- `x-algolia-application-id`. Your Algolia application ID.\n- `x-algolia-api-key`. An API key with the necessary permissions to make the request.\n The required access control list (ACL) to make a request is listed in each endpoint's reference.\n\nYou can find your application ID and API key in the [Algolia dashboard](https://dashboard.algolia.com/account).\n\n## Request format\n\nRequest bodies must be JSON objects.\n\n## Response status and errors\n\nResponse bodies are JSON objects.\nDeleting a user token returns an empty response body with rate-limiting information as headers.\n\nSuccessful responses return a `2xx` status. Client errors return a `4xx` status. Server errors are indicated by a `5xx` status.\nError responses have a `message` property with more information.\n\n## Version\n\nThe current version of the Query Suggestions API is version 1, as indicated by the `/1/` in each endpoint's URL.\n",
|
|
6
|
+
"version": "1.0.0"
|
|
7
|
+
},
|
|
8
|
+
"servers": [
|
|
9
|
+
{
|
|
10
|
+
"url": "https://query-suggestions.{region}.algolia.com",
|
|
11
|
+
"description": "You can check the region for your application in the [Algolia dashboard](https://dashboard.algolia.com/account/infrastructure/analytics).\nIf you connect to the wrong region, the API returns an error with the status `401` and the message: \"The log processing region does not match\".\n",
|
|
12
|
+
"variables": {
|
|
13
|
+
"region": {
|
|
14
|
+
"description": "The region where your Algolia application is hosted.",
|
|
15
|
+
"enum": [
|
|
16
|
+
"us",
|
|
17
|
+
"eu"
|
|
18
|
+
],
|
|
19
|
+
"default": "us"
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
],
|
|
24
|
+
"security": [
|
|
25
|
+
{
|
|
26
|
+
"applicationId": [],
|
|
27
|
+
"apiKey": []
|
|
28
|
+
}
|
|
29
|
+
],
|
|
30
|
+
"tags": [
|
|
31
|
+
{
|
|
32
|
+
"name": "configurations",
|
|
33
|
+
"x-displayName": "Configurations",
|
|
34
|
+
"description": "Manage Query Suggestions configurations."
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"name": "logs",
|
|
38
|
+
"x-displayName": "Logs",
|
|
39
|
+
"description": "Get logs for a Query Suggestions index."
|
|
40
|
+
}
|
|
41
|
+
],
|
|
42
|
+
"paths": {
|
|
43
|
+
"/{path}": {
|
|
44
|
+
"get": {
|
|
45
|
+
"operationId": "customGet",
|
|
46
|
+
"summary": "Send requests to the Algolia REST API",
|
|
47
|
+
"description": "This method lets you send requests to the Algolia REST API.",
|
|
48
|
+
"parameters": [
|
|
49
|
+
{
|
|
50
|
+
"$ref": "#/components/parameters/PathInPath"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"$ref": "#/components/parameters/Parameters"
|
|
54
|
+
}
|
|
55
|
+
],
|
|
56
|
+
"responses": {
|
|
57
|
+
"200": {
|
|
58
|
+
"description": "OK",
|
|
59
|
+
"content": {
|
|
60
|
+
"application/json": {
|
|
61
|
+
"schema": {
|
|
62
|
+
"type": "object"
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
"400": {
|
|
68
|
+
"$ref": "#/components/responses/BadRequest"
|
|
69
|
+
},
|
|
70
|
+
"402": {
|
|
71
|
+
"$ref": "#/components/responses/FeatureNotEnabled"
|
|
72
|
+
},
|
|
73
|
+
"403": {
|
|
74
|
+
"$ref": "#/components/responses/MethodNotAllowed"
|
|
75
|
+
},
|
|
76
|
+
"404": {
|
|
77
|
+
"$ref": "#/components/responses/IndexNotFound"
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
"post": {
|
|
82
|
+
"operationId": "customPost",
|
|
83
|
+
"requestBody": {
|
|
84
|
+
"description": "Parameters to send with the custom request.",
|
|
85
|
+
"content": {
|
|
86
|
+
"application/json": {
|
|
87
|
+
"schema": {
|
|
88
|
+
"type": "object"
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
"summary": "Send requests to the Algolia REST API",
|
|
94
|
+
"description": "This method lets you send requests to the Algolia REST API.",
|
|
95
|
+
"parameters": [
|
|
96
|
+
{
|
|
97
|
+
"$ref": "#/components/parameters/PathInPath"
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"$ref": "#/components/parameters/Parameters"
|
|
101
|
+
}
|
|
102
|
+
],
|
|
103
|
+
"responses": {
|
|
104
|
+
"200": {
|
|
105
|
+
"description": "OK",
|
|
106
|
+
"content": {
|
|
107
|
+
"application/json": {
|
|
108
|
+
"schema": {
|
|
109
|
+
"type": "object"
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
},
|
|
114
|
+
"400": {
|
|
115
|
+
"$ref": "#/components/responses/BadRequest"
|
|
116
|
+
},
|
|
117
|
+
"402": {
|
|
118
|
+
"$ref": "#/components/responses/FeatureNotEnabled"
|
|
119
|
+
},
|
|
120
|
+
"403": {
|
|
121
|
+
"$ref": "#/components/responses/MethodNotAllowed"
|
|
122
|
+
},
|
|
123
|
+
"404": {
|
|
124
|
+
"$ref": "#/components/responses/IndexNotFound"
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
},
|
|
128
|
+
"put": {
|
|
129
|
+
"operationId": "customPut",
|
|
130
|
+
"requestBody": {
|
|
131
|
+
"description": "Parameters to send with the custom request.",
|
|
132
|
+
"content": {
|
|
133
|
+
"application/json": {
|
|
134
|
+
"schema": {
|
|
135
|
+
"type": "object"
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
},
|
|
140
|
+
"summary": "Send requests to the Algolia REST API",
|
|
141
|
+
"description": "This method lets you send requests to the Algolia REST API.",
|
|
142
|
+
"parameters": [
|
|
143
|
+
{
|
|
144
|
+
"$ref": "#/components/parameters/PathInPath"
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
"$ref": "#/components/parameters/Parameters"
|
|
148
|
+
}
|
|
149
|
+
],
|
|
150
|
+
"responses": {
|
|
151
|
+
"200": {
|
|
152
|
+
"description": "OK",
|
|
153
|
+
"content": {
|
|
154
|
+
"application/json": {
|
|
155
|
+
"schema": {
|
|
156
|
+
"type": "object"
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
},
|
|
161
|
+
"400": {
|
|
162
|
+
"$ref": "#/components/responses/BadRequest"
|
|
163
|
+
},
|
|
164
|
+
"402": {
|
|
165
|
+
"$ref": "#/components/responses/FeatureNotEnabled"
|
|
166
|
+
},
|
|
167
|
+
"403": {
|
|
168
|
+
"$ref": "#/components/responses/MethodNotAllowed"
|
|
169
|
+
},
|
|
170
|
+
"404": {
|
|
171
|
+
"$ref": "#/components/responses/IndexNotFound"
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
},
|
|
175
|
+
"delete": {
|
|
176
|
+
"operationId": "customDelete",
|
|
177
|
+
"summary": "Send requests to the Algolia REST API",
|
|
178
|
+
"description": "This method lets you send requests to the Algolia REST API.",
|
|
179
|
+
"parameters": [
|
|
180
|
+
{
|
|
181
|
+
"$ref": "#/components/parameters/PathInPath"
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
"$ref": "#/components/parameters/Parameters"
|
|
185
|
+
}
|
|
186
|
+
],
|
|
187
|
+
"responses": {
|
|
188
|
+
"200": {
|
|
189
|
+
"description": "OK",
|
|
190
|
+
"content": {
|
|
191
|
+
"application/json": {
|
|
192
|
+
"schema": {
|
|
193
|
+
"type": "object"
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
},
|
|
198
|
+
"400": {
|
|
199
|
+
"$ref": "#/components/responses/BadRequest"
|
|
200
|
+
},
|
|
201
|
+
"402": {
|
|
202
|
+
"$ref": "#/components/responses/FeatureNotEnabled"
|
|
203
|
+
},
|
|
204
|
+
"403": {
|
|
205
|
+
"$ref": "#/components/responses/MethodNotAllowed"
|
|
206
|
+
},
|
|
207
|
+
"404": {
|
|
208
|
+
"$ref": "#/components/responses/IndexNotFound"
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
},
|
|
213
|
+
"/1/configs": {
|
|
214
|
+
"get": {
|
|
215
|
+
"tags": [
|
|
216
|
+
"configurations"
|
|
217
|
+
],
|
|
218
|
+
"operationId": "getAllConfigs",
|
|
219
|
+
"x-mcp-tool": true,
|
|
220
|
+
"x-acl": [
|
|
221
|
+
"settings"
|
|
222
|
+
],
|
|
223
|
+
"summary": "List configurations",
|
|
224
|
+
"description": "Retrieves all Query Suggestions configurations of your Algolia application.",
|
|
225
|
+
"responses": {
|
|
226
|
+
"200": {
|
|
227
|
+
"description": "OK",
|
|
228
|
+
"content": {
|
|
229
|
+
"application/json": {
|
|
230
|
+
"schema": {
|
|
231
|
+
"type": "array",
|
|
232
|
+
"items": {
|
|
233
|
+
"$ref": "#/components/schemas/ConfigurationResponse"
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
},
|
|
239
|
+
"401": {
|
|
240
|
+
"$ref": "#/components/responses/Unauthorized"
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
},
|
|
244
|
+
"post": {
|
|
245
|
+
"tags": [
|
|
246
|
+
"configurations"
|
|
247
|
+
],
|
|
248
|
+
"operationId": "createConfig",
|
|
249
|
+
"x-mcp-tool": true,
|
|
250
|
+
"x-acl": [
|
|
251
|
+
"editSettings"
|
|
252
|
+
],
|
|
253
|
+
"summary": "Create a configuration",
|
|
254
|
+
"description": "Creates a new Query Suggestions configuration.\n\nYou can have up to 100 configurations per Algolia application.\n",
|
|
255
|
+
"requestBody": {
|
|
256
|
+
"required": true,
|
|
257
|
+
"content": {
|
|
258
|
+
"application/json": {
|
|
259
|
+
"schema": {
|
|
260
|
+
"$ref": "#/components/schemas/ConfigurationWithIndex"
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
},
|
|
265
|
+
"responses": {
|
|
266
|
+
"200": {
|
|
267
|
+
"description": "OK",
|
|
268
|
+
"content": {
|
|
269
|
+
"application/json": {
|
|
270
|
+
"schema": {
|
|
271
|
+
"$ref": "#/components/schemas/BaseResponse"
|
|
272
|
+
},
|
|
273
|
+
"examples": {
|
|
274
|
+
"Created": {
|
|
275
|
+
"summary": "Configuration created",
|
|
276
|
+
"value": {
|
|
277
|
+
"status": 200,
|
|
278
|
+
"message": "Configuration was created, and a new indexing job has been scheduled."
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
},
|
|
285
|
+
"400": {
|
|
286
|
+
"$ref": "#/components/responses/BadRequest-2"
|
|
287
|
+
},
|
|
288
|
+
"401": {
|
|
289
|
+
"$ref": "#/components/responses/Unauthorized"
|
|
290
|
+
},
|
|
291
|
+
"422": {
|
|
292
|
+
"$ref": "#/components/responses/UnprocessableEntity"
|
|
293
|
+
},
|
|
294
|
+
"500": {
|
|
295
|
+
"$ref": "#/components/responses/InternalError"
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
},
|
|
300
|
+
"/1/configs/{indexName}": {
|
|
301
|
+
"get": {
|
|
302
|
+
"tags": [
|
|
303
|
+
"configurations"
|
|
304
|
+
],
|
|
305
|
+
"operationId": "getConfig",
|
|
306
|
+
"x-mcp-tool": true,
|
|
307
|
+
"x-acl": [
|
|
308
|
+
"settings"
|
|
309
|
+
],
|
|
310
|
+
"summary": "Retrieve a configuration",
|
|
311
|
+
"description": "Retrieves a single Query Suggestions configuration by its index name.",
|
|
312
|
+
"parameters": [
|
|
313
|
+
{
|
|
314
|
+
"$ref": "#/components/parameters/IndexName"
|
|
315
|
+
}
|
|
316
|
+
],
|
|
317
|
+
"responses": {
|
|
318
|
+
"200": {
|
|
319
|
+
"description": "OK",
|
|
320
|
+
"content": {
|
|
321
|
+
"application/json": {
|
|
322
|
+
"schema": {
|
|
323
|
+
"$ref": "#/components/schemas/ConfigurationResponse"
|
|
324
|
+
}
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
},
|
|
328
|
+
"400": {
|
|
329
|
+
"$ref": "#/components/responses/BadRequest-2"
|
|
330
|
+
},
|
|
331
|
+
"401": {
|
|
332
|
+
"$ref": "#/components/responses/Unauthorized"
|
|
333
|
+
},
|
|
334
|
+
"404": {
|
|
335
|
+
"$ref": "#/components/responses/NotFound"
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
},
|
|
339
|
+
"put": {
|
|
340
|
+
"tags": [
|
|
341
|
+
"configurations"
|
|
342
|
+
],
|
|
343
|
+
"operationId": "updateConfig",
|
|
344
|
+
"x-mcp-tool": true,
|
|
345
|
+
"x-acl": [
|
|
346
|
+
"editSettings"
|
|
347
|
+
],
|
|
348
|
+
"summary": "Update a configuration",
|
|
349
|
+
"description": "Updates a QuerySuggestions configuration.",
|
|
350
|
+
"parameters": [
|
|
351
|
+
{
|
|
352
|
+
"$ref": "#/components/parameters/IndexName"
|
|
353
|
+
}
|
|
354
|
+
],
|
|
355
|
+
"requestBody": {
|
|
356
|
+
"required": true,
|
|
357
|
+
"content": {
|
|
358
|
+
"application/json": {
|
|
359
|
+
"schema": {
|
|
360
|
+
"$ref": "#/components/schemas/Configuration"
|
|
361
|
+
}
|
|
362
|
+
}
|
|
363
|
+
}
|
|
364
|
+
},
|
|
365
|
+
"responses": {
|
|
366
|
+
"200": {
|
|
367
|
+
"description": "OK",
|
|
368
|
+
"content": {
|
|
369
|
+
"application/json": {
|
|
370
|
+
"schema": {
|
|
371
|
+
"$ref": "#/components/schemas/BaseResponse"
|
|
372
|
+
},
|
|
373
|
+
"examples": {
|
|
374
|
+
"Created": {
|
|
375
|
+
"summary": "Configuration created",
|
|
376
|
+
"value": {
|
|
377
|
+
"status": 200,
|
|
378
|
+
"message": "Configuration was updated, and a new indexing job has been scheduled."
|
|
379
|
+
}
|
|
380
|
+
}
|
|
381
|
+
}
|
|
382
|
+
}
|
|
383
|
+
}
|
|
384
|
+
},
|
|
385
|
+
"401": {
|
|
386
|
+
"$ref": "#/components/responses/Unauthorized"
|
|
387
|
+
},
|
|
388
|
+
"500": {
|
|
389
|
+
"$ref": "#/components/responses/InternalError-2"
|
|
390
|
+
}
|
|
391
|
+
}
|
|
392
|
+
},
|
|
393
|
+
"delete": {
|
|
394
|
+
"tags": [
|
|
395
|
+
"configurations"
|
|
396
|
+
],
|
|
397
|
+
"operationId": "deleteConfig",
|
|
398
|
+
"x-acl": [
|
|
399
|
+
"editSettings"
|
|
400
|
+
],
|
|
401
|
+
"summary": "Delete a configuration",
|
|
402
|
+
"description": "Deletes a Query Suggestions configuration.\n\nDeleting only removes the configuration and stops updates to the Query Suggestions index.\nTo delete the Query Suggestions index itself, use the Search API and the `Delete an index` operation.\n",
|
|
403
|
+
"parameters": [
|
|
404
|
+
{
|
|
405
|
+
"$ref": "#/components/parameters/IndexName"
|
|
406
|
+
}
|
|
407
|
+
],
|
|
408
|
+
"responses": {
|
|
409
|
+
"200": {
|
|
410
|
+
"description": "OK",
|
|
411
|
+
"content": {
|
|
412
|
+
"application/json": {
|
|
413
|
+
"schema": {
|
|
414
|
+
"$ref": "#/components/schemas/BaseResponse"
|
|
415
|
+
},
|
|
416
|
+
"examples": {
|
|
417
|
+
"Created": {
|
|
418
|
+
"summary": "Configuration created",
|
|
419
|
+
"value": {
|
|
420
|
+
"status": 200,
|
|
421
|
+
"message": "Configuration was deleted with success."
|
|
422
|
+
}
|
|
423
|
+
}
|
|
424
|
+
}
|
|
425
|
+
}
|
|
426
|
+
}
|
|
427
|
+
},
|
|
428
|
+
"401": {
|
|
429
|
+
"$ref": "#/components/responses/Unauthorized"
|
|
430
|
+
},
|
|
431
|
+
"500": {
|
|
432
|
+
"$ref": "#/components/responses/InternalError-2"
|
|
433
|
+
}
|
|
434
|
+
}
|
|
435
|
+
}
|
|
436
|
+
},
|
|
437
|
+
"/1/configs/{indexName}/status": {
|
|
438
|
+
"get": {
|
|
439
|
+
"tags": [
|
|
440
|
+
"configurations"
|
|
441
|
+
],
|
|
442
|
+
"operationId": "getConfigStatus",
|
|
443
|
+
"x-mcp-tool": true,
|
|
444
|
+
"x-acl": [
|
|
445
|
+
"settings"
|
|
446
|
+
],
|
|
447
|
+
"summary": "Retrieve configuration status",
|
|
448
|
+
"description": "Reports the status of a Query Suggestions index.",
|
|
449
|
+
"parameters": [
|
|
450
|
+
{
|
|
451
|
+
"$ref": "#/components/parameters/IndexName"
|
|
452
|
+
}
|
|
453
|
+
],
|
|
454
|
+
"responses": {
|
|
455
|
+
"200": {
|
|
456
|
+
"description": "OK",
|
|
457
|
+
"content": {
|
|
458
|
+
"application/json": {
|
|
459
|
+
"schema": {
|
|
460
|
+
"title": "configStatus",
|
|
461
|
+
"type": "object",
|
|
462
|
+
"additionalProperties": false,
|
|
463
|
+
"properties": {
|
|
464
|
+
"indexName": {
|
|
465
|
+
"$ref": "#/components/schemas/IndexName"
|
|
466
|
+
},
|
|
467
|
+
"isRunning": {
|
|
468
|
+
"type": "boolean",
|
|
469
|
+
"description": "Whether the creation or update of the Query Suggestions index is in progress.",
|
|
470
|
+
"example": false
|
|
471
|
+
},
|
|
472
|
+
"lastBuiltAt": {
|
|
473
|
+
"type": "string",
|
|
474
|
+
"description": "Date and time when the Query Suggestions index was last built, in RFC 3339 format.",
|
|
475
|
+
"example": "2023-07-05T08:03:53Z"
|
|
476
|
+
},
|
|
477
|
+
"lastSuccessfulBuiltAt": {
|
|
478
|
+
"type": "string",
|
|
479
|
+
"description": "Date and time when the Query Suggestions index was last updated successfully.",
|
|
480
|
+
"example": "2023-07-05T08:03:53Z"
|
|
481
|
+
},
|
|
482
|
+
"lastSuccessfulBuildDuration": {
|
|
483
|
+
"type": "string",
|
|
484
|
+
"description": "Duration of the last successful build in seconds.",
|
|
485
|
+
"example": 28
|
|
486
|
+
}
|
|
487
|
+
}
|
|
488
|
+
}
|
|
489
|
+
}
|
|
490
|
+
}
|
|
491
|
+
},
|
|
492
|
+
"401": {
|
|
493
|
+
"$ref": "#/components/responses/Unauthorized"
|
|
494
|
+
},
|
|
495
|
+
"404": {
|
|
496
|
+
"$ref": "#/components/responses/NotFound"
|
|
497
|
+
}
|
|
498
|
+
}
|
|
499
|
+
}
|
|
500
|
+
},
|
|
501
|
+
"/1/logs/{indexName}": {
|
|
502
|
+
"get": {
|
|
503
|
+
"tags": [
|
|
504
|
+
"logs"
|
|
505
|
+
],
|
|
506
|
+
"operationId": "getLogFile",
|
|
507
|
+
"x-mcp-tool": true,
|
|
508
|
+
"x-acl": [
|
|
509
|
+
"settings"
|
|
510
|
+
],
|
|
511
|
+
"summary": "Retrieve logs",
|
|
512
|
+
"description": "Retrieves the logs for a single Query Suggestions index.",
|
|
513
|
+
"parameters": [
|
|
514
|
+
{
|
|
515
|
+
"$ref": "#/components/parameters/IndexName"
|
|
516
|
+
}
|
|
517
|
+
],
|
|
518
|
+
"responses": {
|
|
519
|
+
"200": {
|
|
520
|
+
"description": "OK",
|
|
521
|
+
"content": {
|
|
522
|
+
"application/json": {
|
|
523
|
+
"schema": {
|
|
524
|
+
"title": "logFile",
|
|
525
|
+
"type": "object",
|
|
526
|
+
"additionalProperties": false,
|
|
527
|
+
"properties": {
|
|
528
|
+
"timestamp": {
|
|
529
|
+
"type": "string",
|
|
530
|
+
"description": "Date and time of the log entry, in RFC 3339 format.",
|
|
531
|
+
"example": "2023-07-05T08:03:33.898076171Z"
|
|
532
|
+
},
|
|
533
|
+
"level": {
|
|
534
|
+
"$ref": "#/components/schemas/LogLevel"
|
|
535
|
+
},
|
|
536
|
+
"message": {
|
|
537
|
+
"type": "string",
|
|
538
|
+
"description": "Details about this log entry.",
|
|
539
|
+
"example": "skipping query \"Brooke Adams\": not enough search results, got 1, expected 5"
|
|
540
|
+
},
|
|
541
|
+
"contextLevel": {
|
|
542
|
+
"type": "integer",
|
|
543
|
+
"description": "Level indicating the position of a suggestion in a hierarchy of records.\n\nFor example, a `contextLevel` of 1 indicates that this suggestion belongs to a previous suggestion with `contextLevel` 0.\n",
|
|
544
|
+
"example": 1
|
|
545
|
+
}
|
|
546
|
+
}
|
|
547
|
+
}
|
|
548
|
+
}
|
|
549
|
+
}
|
|
550
|
+
},
|
|
551
|
+
"401": {
|
|
552
|
+
"$ref": "#/components/responses/Unauthorized"
|
|
553
|
+
},
|
|
554
|
+
"404": {
|
|
555
|
+
"$ref": "#/components/responses/NotFound"
|
|
556
|
+
}
|
|
557
|
+
}
|
|
558
|
+
}
|
|
559
|
+
},
|
|
560
|
+
"/setClientApiKey": {
|
|
561
|
+
"get": {
|
|
562
|
+
"x-helper": true,
|
|
563
|
+
"x-asynchronous-helper": false,
|
|
564
|
+
"tags": [
|
|
565
|
+
"Api Key"
|
|
566
|
+
],
|
|
567
|
+
"operationId": "setClientApiKey",
|
|
568
|
+
"summary": "Switch the API key used to authenticate requests",
|
|
569
|
+
"description": "Switch the API key used to authenticate requests.\n",
|
|
570
|
+
"parameters": [
|
|
571
|
+
{
|
|
572
|
+
"in": "query",
|
|
573
|
+
"name": "apiKey",
|
|
574
|
+
"description": "API key to be used from now on.",
|
|
575
|
+
"required": true,
|
|
576
|
+
"schema": {
|
|
577
|
+
"type": "string"
|
|
578
|
+
}
|
|
579
|
+
}
|
|
580
|
+
],
|
|
581
|
+
"responses": {
|
|
582
|
+
"204": {
|
|
583
|
+
"description": "No content."
|
|
584
|
+
}
|
|
585
|
+
}
|
|
586
|
+
}
|
|
587
|
+
}
|
|
588
|
+
},
|
|
589
|
+
"components": {
|
|
590
|
+
"securitySchemes": {
|
|
591
|
+
"applicationId": {
|
|
592
|
+
"type": "apiKey",
|
|
593
|
+
"in": "header",
|
|
594
|
+
"name": "x-algolia-application-id",
|
|
595
|
+
"description": "Your Algolia application ID."
|
|
596
|
+
},
|
|
597
|
+
"apiKey": {
|
|
598
|
+
"type": "apiKey",
|
|
599
|
+
"in": "header",
|
|
600
|
+
"name": "x-algolia-api-key",
|
|
601
|
+
"description": "Your Algolia API key with the necessary permissions to make the request.\nPermissions are controlled through access control lists (ACL) and access restrictions.\nThe required ACL to make a request is listed in each endpoint's reference.\n"
|
|
602
|
+
}
|
|
603
|
+
},
|
|
604
|
+
"parameters": {
|
|
605
|
+
"PathInPath": {
|
|
606
|
+
"name": "path",
|
|
607
|
+
"in": "path",
|
|
608
|
+
"description": "Path of the endpoint, for example `1/newFeature`.",
|
|
609
|
+
"required": true,
|
|
610
|
+
"schema": {
|
|
611
|
+
"type": "string",
|
|
612
|
+
"example": "/keys"
|
|
613
|
+
}
|
|
614
|
+
},
|
|
615
|
+
"Parameters": {
|
|
616
|
+
"name": "parameters",
|
|
617
|
+
"in": "query",
|
|
618
|
+
"description": "Query parameters to apply to the current query.",
|
|
619
|
+
"schema": {
|
|
620
|
+
"type": "object",
|
|
621
|
+
"additionalProperties": true
|
|
622
|
+
}
|
|
623
|
+
},
|
|
624
|
+
"IndexName": {
|
|
625
|
+
"name": "indexName",
|
|
626
|
+
"in": "path",
|
|
627
|
+
"required": true,
|
|
628
|
+
"description": "Query Suggestions index name.",
|
|
629
|
+
"schema": {
|
|
630
|
+
"$ref": "#/components/schemas/IndexName"
|
|
631
|
+
}
|
|
632
|
+
}
|
|
633
|
+
},
|
|
634
|
+
"schemas": {
|
|
635
|
+
"ErrorBase": {
|
|
636
|
+
"description": "Error.",
|
|
637
|
+
"type": "object",
|
|
638
|
+
"x-keep-model": true,
|
|
639
|
+
"additionalProperties": true,
|
|
640
|
+
"properties": {
|
|
641
|
+
"message": {
|
|
642
|
+
"type": "string",
|
|
643
|
+
"example": "Invalid Application-Id or API-Key"
|
|
644
|
+
}
|
|
645
|
+
}
|
|
646
|
+
},
|
|
647
|
+
"AppID": {
|
|
648
|
+
"type": "object",
|
|
649
|
+
"properties": {
|
|
650
|
+
"appID": {
|
|
651
|
+
"type": "string",
|
|
652
|
+
"description": "Algolia application ID to which this Query Suggestions configuration belongs."
|
|
653
|
+
}
|
|
654
|
+
}
|
|
655
|
+
},
|
|
656
|
+
"IndexName": {
|
|
657
|
+
"title": "indexName",
|
|
658
|
+
"type": "string",
|
|
659
|
+
"description": "Name of the Query Suggestions index (case-sensitive).",
|
|
660
|
+
"example": "ALGOLIA_INDEX_NAME"
|
|
661
|
+
},
|
|
662
|
+
"AnalyticsTags": {
|
|
663
|
+
"title": "analyticsTags",
|
|
664
|
+
"description": "Analytics tags for filtering the popular searches.\nFor more information, see [Segment your analytics data](https://www.algolia.com/doc/guides/search-analytics/guides/segments/).\n",
|
|
665
|
+
"default": null,
|
|
666
|
+
"oneOf": [
|
|
667
|
+
{
|
|
668
|
+
"type": "array",
|
|
669
|
+
"items": {
|
|
670
|
+
"type": "string"
|
|
671
|
+
}
|
|
672
|
+
},
|
|
673
|
+
{
|
|
674
|
+
"type": "null"
|
|
675
|
+
}
|
|
676
|
+
]
|
|
677
|
+
},
|
|
678
|
+
"Facet": {
|
|
679
|
+
"type": "object",
|
|
680
|
+
"description": "Facet to use as category.",
|
|
681
|
+
"properties": {
|
|
682
|
+
"attribute": {
|
|
683
|
+
"type": "string",
|
|
684
|
+
"description": "Facet name."
|
|
685
|
+
},
|
|
686
|
+
"amount": {
|
|
687
|
+
"type": "integer",
|
|
688
|
+
"description": "Number of suggestions."
|
|
689
|
+
}
|
|
690
|
+
}
|
|
691
|
+
},
|
|
692
|
+
"Facets": {
|
|
693
|
+
"title": "facets",
|
|
694
|
+
"description": "Facets to use as top categories with your suggestions.\n\nIf provided, Query Suggestions adds the top facet values to each suggestion.\n",
|
|
695
|
+
"default": null,
|
|
696
|
+
"oneOf": [
|
|
697
|
+
{
|
|
698
|
+
"type": "array",
|
|
699
|
+
"items": {
|
|
700
|
+
"$ref": "#/components/schemas/Facet"
|
|
701
|
+
}
|
|
702
|
+
},
|
|
703
|
+
{
|
|
704
|
+
"type": "null"
|
|
705
|
+
}
|
|
706
|
+
],
|
|
707
|
+
"example": [
|
|
708
|
+
{
|
|
709
|
+
"attribute": "category",
|
|
710
|
+
"amount": 3
|
|
711
|
+
},
|
|
712
|
+
{
|
|
713
|
+
"attribute": "brand",
|
|
714
|
+
"amount": 2
|
|
715
|
+
}
|
|
716
|
+
]
|
|
717
|
+
},
|
|
718
|
+
"Generate": {
|
|
719
|
+
"title": "generate",
|
|
720
|
+
"description": "Facets used for generating query suggestions from facet values.\n\nFor example, if you set `generate: [\"color\", \"brand\"]`, combinations from the facet values are added as query suggestions,\nsuch as \"blue adidas\", \"red adidas\", \"blue nike\", \"red nike\", etc.\n\nYou can include nested lists.\n",
|
|
721
|
+
"default": null,
|
|
722
|
+
"oneOf": [
|
|
723
|
+
{
|
|
724
|
+
"type": "array",
|
|
725
|
+
"items": {
|
|
726
|
+
"type": "array",
|
|
727
|
+
"items": {
|
|
728
|
+
"type": "string"
|
|
729
|
+
}
|
|
730
|
+
}
|
|
731
|
+
},
|
|
732
|
+
{
|
|
733
|
+
"type": "null"
|
|
734
|
+
}
|
|
735
|
+
],
|
|
736
|
+
"example": [
|
|
737
|
+
[
|
|
738
|
+
"color",
|
|
739
|
+
"brand"
|
|
740
|
+
]
|
|
741
|
+
]
|
|
742
|
+
},
|
|
743
|
+
"External": {
|
|
744
|
+
"description": "Algolia indices with popular searches to use as query suggestions.\n\nRecords of these indices must have these attributes:\n\n- `query`: search query which will be added as a suggestion\n- `count`: measure of popularity of that search query\n\nFor example, you can export popular searches from an external analytics provider, such as Google Analytics or Adobe Analytics,\nand feed this data into an Algolia index.\nYou can use this index to generate query suggestions until your Algolia Analytics has collected enough data.\n",
|
|
745
|
+
"default": null,
|
|
746
|
+
"oneOf": [
|
|
747
|
+
{
|
|
748
|
+
"type": "array",
|
|
749
|
+
"items": {
|
|
750
|
+
"type": "string"
|
|
751
|
+
}
|
|
752
|
+
},
|
|
753
|
+
{
|
|
754
|
+
"type": "null"
|
|
755
|
+
}
|
|
756
|
+
]
|
|
757
|
+
},
|
|
758
|
+
"SourceIndex": {
|
|
759
|
+
"type": "object",
|
|
760
|
+
"description": "Configuration of an Algolia index for Query Suggestions.",
|
|
761
|
+
"required": [
|
|
762
|
+
"indexName"
|
|
763
|
+
],
|
|
764
|
+
"properties": {
|
|
765
|
+
"indexName": {
|
|
766
|
+
"type": "string",
|
|
767
|
+
"description": "Name of the Algolia index (case-sensitive) to use as source for query suggestions.",
|
|
768
|
+
"example": "products"
|
|
769
|
+
},
|
|
770
|
+
"replicas": {
|
|
771
|
+
"type": "boolean",
|
|
772
|
+
"default": false,
|
|
773
|
+
"description": "If true, Query Suggestions uses all replica indices to find popular searches.\nIf false, only the primary index is used.\n",
|
|
774
|
+
"example": false
|
|
775
|
+
},
|
|
776
|
+
"analyticsTags": {
|
|
777
|
+
"$ref": "#/components/schemas/AnalyticsTags"
|
|
778
|
+
},
|
|
779
|
+
"facets": {
|
|
780
|
+
"$ref": "#/components/schemas/Facets"
|
|
781
|
+
},
|
|
782
|
+
"minHits": {
|
|
783
|
+
"type": "integer",
|
|
784
|
+
"minimum": 0,
|
|
785
|
+
"default": 5,
|
|
786
|
+
"description": "Minimum number of hits required to be included as a suggestion.\n\nA search query must at least generate `minHits` search results to be included in the Query Suggestions index.\n"
|
|
787
|
+
},
|
|
788
|
+
"minLetters": {
|
|
789
|
+
"type": "integer",
|
|
790
|
+
"minimum": 0,
|
|
791
|
+
"default": 4,
|
|
792
|
+
"description": "Minimum letters required to be included as a suggestion.\n\nA search query must be at least `minLetters` long to be included in the Query Suggestions index.\n"
|
|
793
|
+
},
|
|
794
|
+
"generate": {
|
|
795
|
+
"$ref": "#/components/schemas/Generate"
|
|
796
|
+
},
|
|
797
|
+
"external": {
|
|
798
|
+
"$ref": "#/components/schemas/External"
|
|
799
|
+
}
|
|
800
|
+
}
|
|
801
|
+
},
|
|
802
|
+
"Languages": {
|
|
803
|
+
"title": "languages",
|
|
804
|
+
"description": "Languages for deduplicating singular and plural suggestions.\nIf specified, only the more popular form is included.\n",
|
|
805
|
+
"default": false,
|
|
806
|
+
"oneOf": [
|
|
807
|
+
{
|
|
808
|
+
"type": "array",
|
|
809
|
+
"description": "Languages for which to deduplicate singular and plural forms.",
|
|
810
|
+
"items": {
|
|
811
|
+
"type": "string",
|
|
812
|
+
"description": "Two-letter country code."
|
|
813
|
+
}
|
|
814
|
+
},
|
|
815
|
+
{
|
|
816
|
+
"type": "boolean",
|
|
817
|
+
"description": "If true, deduplication is enabled for all languages."
|
|
818
|
+
}
|
|
819
|
+
]
|
|
820
|
+
},
|
|
821
|
+
"Exclude": {
|
|
822
|
+
"title": "exclude",
|
|
823
|
+
"description": "Words or regular expressions to exclude from the suggestions.",
|
|
824
|
+
"default": null,
|
|
825
|
+
"oneOf": [
|
|
826
|
+
{
|
|
827
|
+
"type": "array",
|
|
828
|
+
"items": {
|
|
829
|
+
"type": "string"
|
|
830
|
+
}
|
|
831
|
+
},
|
|
832
|
+
{
|
|
833
|
+
"type": "null"
|
|
834
|
+
}
|
|
835
|
+
]
|
|
836
|
+
},
|
|
837
|
+
"Configuration": {
|
|
838
|
+
"type": "object",
|
|
839
|
+
"description": "Query Suggestions configuration.",
|
|
840
|
+
"required": [
|
|
841
|
+
"sourceIndices"
|
|
842
|
+
],
|
|
843
|
+
"properties": {
|
|
844
|
+
"sourceIndices": {
|
|
845
|
+
"type": "array",
|
|
846
|
+
"description": "Algolia indices from which to get the popular searches for query suggestions.",
|
|
847
|
+
"minItems": 1,
|
|
848
|
+
"items": {
|
|
849
|
+
"$ref": "#/components/schemas/SourceIndex"
|
|
850
|
+
}
|
|
851
|
+
},
|
|
852
|
+
"languages": {
|
|
853
|
+
"$ref": "#/components/schemas/Languages"
|
|
854
|
+
},
|
|
855
|
+
"exclude": {
|
|
856
|
+
"$ref": "#/components/schemas/Exclude"
|
|
857
|
+
},
|
|
858
|
+
"enablePersonalization": {
|
|
859
|
+
"type": "boolean",
|
|
860
|
+
"default": false,
|
|
861
|
+
"description": "Whether to turn on personalized query suggestions."
|
|
862
|
+
},
|
|
863
|
+
"allowSpecialCharacters": {
|
|
864
|
+
"type": "boolean",
|
|
865
|
+
"default": false,
|
|
866
|
+
"description": "Whether to include suggestions with special characters."
|
|
867
|
+
}
|
|
868
|
+
}
|
|
869
|
+
},
|
|
870
|
+
"ConfigurationWithIndex": {
|
|
871
|
+
"type": "object",
|
|
872
|
+
"description": "Query Suggestions configuration.",
|
|
873
|
+
"required": [
|
|
874
|
+
"indexName",
|
|
875
|
+
"sourceIndices"
|
|
876
|
+
],
|
|
877
|
+
"allOf": [
|
|
878
|
+
{
|
|
879
|
+
"type": "object",
|
|
880
|
+
"additionalProperties": false,
|
|
881
|
+
"properties": {
|
|
882
|
+
"indexName": {
|
|
883
|
+
"$ref": "#/components/schemas/IndexName"
|
|
884
|
+
}
|
|
885
|
+
}
|
|
886
|
+
},
|
|
887
|
+
{
|
|
888
|
+
"$ref": "#/components/schemas/Configuration"
|
|
889
|
+
}
|
|
890
|
+
]
|
|
891
|
+
},
|
|
892
|
+
"ConfigurationResponse": {
|
|
893
|
+
"type": "object",
|
|
894
|
+
"description": "API response for retrieving Query Suggestions configurations.",
|
|
895
|
+
"allOf": [
|
|
896
|
+
{
|
|
897
|
+
"$ref": "#/components/schemas/AppID"
|
|
898
|
+
},
|
|
899
|
+
{
|
|
900
|
+
"$ref": "#/components/schemas/ConfigurationWithIndex"
|
|
901
|
+
}
|
|
902
|
+
],
|
|
903
|
+
"required": [
|
|
904
|
+
"appID",
|
|
905
|
+
"allowSpecialCharacters",
|
|
906
|
+
"enablePersonalization",
|
|
907
|
+
"exclude",
|
|
908
|
+
"languages",
|
|
909
|
+
"sourceIndices"
|
|
910
|
+
]
|
|
911
|
+
},
|
|
912
|
+
"BaseResponse": {
|
|
913
|
+
"type": "object",
|
|
914
|
+
"properties": {
|
|
915
|
+
"status": {
|
|
916
|
+
"type": "integer",
|
|
917
|
+
"description": "HTTP status code."
|
|
918
|
+
},
|
|
919
|
+
"message": {
|
|
920
|
+
"type": "string",
|
|
921
|
+
"description": "Details about the response, such as error messages."
|
|
922
|
+
}
|
|
923
|
+
}
|
|
924
|
+
},
|
|
925
|
+
"LogLevel": {
|
|
926
|
+
"title": "level",
|
|
927
|
+
"type": "string",
|
|
928
|
+
"description": "Type of log entry.\n\n- `SKIP`. A query is skipped because it doesn't match the conditions for successful inclusion. For example, when a query doesn't generate enough search results.\n- `INFO`. An informative log entry.\n- `ERROR`. The Query Suggestions process encountered an error.\n",
|
|
929
|
+
"enum": [
|
|
930
|
+
"SKIP",
|
|
931
|
+
"INFO",
|
|
932
|
+
"ERROR"
|
|
933
|
+
]
|
|
934
|
+
}
|
|
935
|
+
},
|
|
936
|
+
"responses": {
|
|
937
|
+
"BadRequest": {
|
|
938
|
+
"description": "Bad request or request arguments.",
|
|
939
|
+
"content": {
|
|
940
|
+
"application/json": {
|
|
941
|
+
"schema": {
|
|
942
|
+
"$ref": "#/components/schemas/ErrorBase"
|
|
943
|
+
}
|
|
944
|
+
}
|
|
945
|
+
}
|
|
946
|
+
},
|
|
947
|
+
"FeatureNotEnabled": {
|
|
948
|
+
"description": "This feature is not enabled on your Algolia account.",
|
|
949
|
+
"content": {
|
|
950
|
+
"application/json": {
|
|
951
|
+
"schema": {
|
|
952
|
+
"$ref": "#/components/schemas/ErrorBase"
|
|
953
|
+
}
|
|
954
|
+
}
|
|
955
|
+
}
|
|
956
|
+
},
|
|
957
|
+
"MethodNotAllowed": {
|
|
958
|
+
"description": "Method not allowed with this API key.",
|
|
959
|
+
"content": {
|
|
960
|
+
"application/json": {
|
|
961
|
+
"schema": {
|
|
962
|
+
"$ref": "#/components/schemas/ErrorBase"
|
|
963
|
+
}
|
|
964
|
+
}
|
|
965
|
+
}
|
|
966
|
+
},
|
|
967
|
+
"IndexNotFound": {
|
|
968
|
+
"description": "Index not found.",
|
|
969
|
+
"content": {
|
|
970
|
+
"application/json": {
|
|
971
|
+
"schema": {
|
|
972
|
+
"$ref": "#/components/schemas/ErrorBase"
|
|
973
|
+
}
|
|
974
|
+
}
|
|
975
|
+
}
|
|
976
|
+
},
|
|
977
|
+
"Unauthorized": {
|
|
978
|
+
"description": "Unauthorized",
|
|
979
|
+
"content": {
|
|
980
|
+
"application/json": {
|
|
981
|
+
"schema": {
|
|
982
|
+
"$ref": "#/components/schemas/BaseResponse"
|
|
983
|
+
},
|
|
984
|
+
"examples": {
|
|
985
|
+
"Unauthorized": {
|
|
986
|
+
"summary": "Wrong region",
|
|
987
|
+
"description": "Make sure to make your request to the server corresponding to your region.\n\nYou can check the region for your application in the [Algolia dashboard](https://dashboard.algolia.com/account/infrastructure/analytics).\n",
|
|
988
|
+
"value": {
|
|
989
|
+
"status": 401,
|
|
990
|
+
"message": "The log processing region does not match."
|
|
991
|
+
}
|
|
992
|
+
},
|
|
993
|
+
"InvalidCredentials": {
|
|
994
|
+
"summary": "Invalid credentials",
|
|
995
|
+
"description": "Your application ID or API key is wrong.",
|
|
996
|
+
"value": {
|
|
997
|
+
"status": 401,
|
|
998
|
+
"message": "Invalid credentials"
|
|
999
|
+
}
|
|
1000
|
+
},
|
|
1001
|
+
"MissingACL": {
|
|
1002
|
+
"summary": "Key is missing ACL",
|
|
1003
|
+
"description": "Your API key is missing the required ACL for this operation.",
|
|
1004
|
+
"value": {
|
|
1005
|
+
"status": 401,
|
|
1006
|
+
"message": "The provided API key is missing the \\\"editSettings\\\" ACL."
|
|
1007
|
+
}
|
|
1008
|
+
}
|
|
1009
|
+
}
|
|
1010
|
+
}
|
|
1011
|
+
}
|
|
1012
|
+
},
|
|
1013
|
+
"BadRequest-2": {
|
|
1014
|
+
"description": "Bad Request.",
|
|
1015
|
+
"content": {
|
|
1016
|
+
"application/json": {
|
|
1017
|
+
"schema": {
|
|
1018
|
+
"$ref": "#/components/schemas/BaseResponse"
|
|
1019
|
+
},
|
|
1020
|
+
"examples": {
|
|
1021
|
+
"IndexNameRequired": {
|
|
1022
|
+
"summary": "Index name required",
|
|
1023
|
+
"value": {
|
|
1024
|
+
"status": 400,
|
|
1025
|
+
"message": "IndexName cannot be empty."
|
|
1026
|
+
}
|
|
1027
|
+
},
|
|
1028
|
+
"SourceIndicesRequired": {
|
|
1029
|
+
"summary": "Source indices required",
|
|
1030
|
+
"value": {
|
|
1031
|
+
"status": 400,
|
|
1032
|
+
"message": "Invalid body \"sourceIndices needs to contain at least one index\"."
|
|
1033
|
+
}
|
|
1034
|
+
},
|
|
1035
|
+
"SourceIndexNameRequired": {
|
|
1036
|
+
"summary": "Source index name required",
|
|
1037
|
+
"value": {
|
|
1038
|
+
"status": 400,
|
|
1039
|
+
"message": "Invalid body \"every source index must have an `indexName`\"."
|
|
1040
|
+
}
|
|
1041
|
+
},
|
|
1042
|
+
"MinHitsPositive": {
|
|
1043
|
+
"summary": "MinHits must be positive",
|
|
1044
|
+
"value": {
|
|
1045
|
+
"status": 400,
|
|
1046
|
+
"message": "Invalid body \"every source index `minHits` must be positive\"."
|
|
1047
|
+
}
|
|
1048
|
+
},
|
|
1049
|
+
"MinLettersPositive": {
|
|
1050
|
+
"summary": "MinLetters must be positive",
|
|
1051
|
+
"value": {
|
|
1052
|
+
"status": 400,
|
|
1053
|
+
"message": "Invalid body \"every source index `minLetters` must be positive\"."
|
|
1054
|
+
}
|
|
1055
|
+
}
|
|
1056
|
+
}
|
|
1057
|
+
}
|
|
1058
|
+
}
|
|
1059
|
+
},
|
|
1060
|
+
"UnprocessableEntity": {
|
|
1061
|
+
"description": "Unprocessable Entity.",
|
|
1062
|
+
"content": {
|
|
1063
|
+
"application/json": {
|
|
1064
|
+
"schema": {
|
|
1065
|
+
"$ref": "#/components/schemas/BaseResponse"
|
|
1066
|
+
},
|
|
1067
|
+
"examples": {
|
|
1068
|
+
"UnprocessableEntity": {
|
|
1069
|
+
"summary": "Configuration already exists",
|
|
1070
|
+
"value": {
|
|
1071
|
+
"status": 422,
|
|
1072
|
+
"message": "Configuration already exists for index: test-qs"
|
|
1073
|
+
}
|
|
1074
|
+
}
|
|
1075
|
+
}
|
|
1076
|
+
}
|
|
1077
|
+
}
|
|
1078
|
+
},
|
|
1079
|
+
"InternalError": {
|
|
1080
|
+
"description": "Internal error.",
|
|
1081
|
+
"content": {
|
|
1082
|
+
"application/json": {
|
|
1083
|
+
"schema": {
|
|
1084
|
+
"$ref": "#/components/schemas/ErrorBase"
|
|
1085
|
+
}
|
|
1086
|
+
}
|
|
1087
|
+
}
|
|
1088
|
+
},
|
|
1089
|
+
"NotFound": {
|
|
1090
|
+
"description": "Not Found.",
|
|
1091
|
+
"content": {
|
|
1092
|
+
"application/json": {
|
|
1093
|
+
"schema": {
|
|
1094
|
+
"$ref": "#/components/schemas/BaseResponse"
|
|
1095
|
+
},
|
|
1096
|
+
"examples": {
|
|
1097
|
+
"NotFound": {
|
|
1098
|
+
"summary": "Index not found",
|
|
1099
|
+
"value": {
|
|
1100
|
+
"status": 404,
|
|
1101
|
+
"message": "Not Found"
|
|
1102
|
+
}
|
|
1103
|
+
}
|
|
1104
|
+
}
|
|
1105
|
+
}
|
|
1106
|
+
}
|
|
1107
|
+
},
|
|
1108
|
+
"InternalError-2": {
|
|
1109
|
+
"description": "Internal Server Error.",
|
|
1110
|
+
"content": {
|
|
1111
|
+
"application/json": {
|
|
1112
|
+
"schema": {
|
|
1113
|
+
"$ref": "#/components/schemas/BaseResponse"
|
|
1114
|
+
},
|
|
1115
|
+
"examples": {
|
|
1116
|
+
"Error": {
|
|
1117
|
+
"description": "This error can happen if you use a non-existing `indexName` as a path parameter when trying to update or delete a Query Suggestions configuration.",
|
|
1118
|
+
"value": {
|
|
1119
|
+
"status": 500,
|
|
1120
|
+
"message": "Internal Server Error"
|
|
1121
|
+
}
|
|
1122
|
+
}
|
|
1123
|
+
}
|
|
1124
|
+
}
|
|
1125
|
+
}
|
|
1126
|
+
}
|
|
1127
|
+
}
|
|
1128
|
+
},
|
|
1129
|
+
"x-tagGroups": [
|
|
1130
|
+
{
|
|
1131
|
+
"name": "Configurations",
|
|
1132
|
+
"tags": [
|
|
1133
|
+
"configurations"
|
|
1134
|
+
]
|
|
1135
|
+
},
|
|
1136
|
+
{
|
|
1137
|
+
"name": "Logs",
|
|
1138
|
+
"tags": [
|
|
1139
|
+
"logs"
|
|
1140
|
+
]
|
|
1141
|
+
}
|
|
1142
|
+
]
|
|
1143
|
+
}
|