@algolia/n8n-nodes-algolia 0.6.0 → 0.8.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 +140 -68
- package/dist/credentials/AlgoliaApi.credentials.js +1 -41
- package/dist/nodes/Algolia/Algolia.node.js +854 -17999
- package/package.json +10 -11
- package/dist/nodes/Algolia/specs/abtesting-v3.json +0 -1701
- package/dist/nodes/Algolia/specs/abtesting.json +0 -1580
- package/dist/nodes/Algolia/specs/advanced-personalization.json +0 -1667
- package/dist/nodes/Algolia/specs/analytics.json +0 -3138
- package/dist/nodes/Algolia/specs/composition.json +0 -4193
- package/dist/nodes/Algolia/specs/crawler.json +0 -3354
- package/dist/nodes/Algolia/specs/ingestion.json +0 -6368
- package/dist/nodes/Algolia/specs/insights.json +0 -1843
- package/dist/nodes/Algolia/specs/monitoring.json +0 -1263
- package/dist/nodes/Algolia/specs/personalization.json +0 -716
- package/dist/nodes/Algolia/specs/query-suggestions.json +0 -1143
- package/dist/nodes/Algolia/specs/recommend.json +0 -3681
- package/dist/nodes/Algolia/specs/search.json +0 -9458
- /package/dist/{nodes/Algolia/algolia.svg → algolia.svg} +0 -0
|
@@ -1,3681 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"openapi": "3.0.2",
|
|
3
|
-
"info": {
|
|
4
|
-
"title": "Recommend API",
|
|
5
|
-
"description": "The Recommend API lets you retrieve recommendations from one of Algolia's AI recommendation models that you previously trained on your data.\n\n## Client libraries\n\nUse Algolia's API clients and libraries to reliably integrate Algolia's APIs with your apps.\nThe official API clients are covered by Algolia's [Service Level Agreement](https://www.algolia.com/policies/sla/).\n\nSee: [Algolia's ecosystem](https://www.algolia.com/doc/guides/getting-started/how-algolia-works/in-depth/ecosystem/)\n\n## Base URLs\n\nThe base URLs for requests to the Recommend API are:\n\n- `https://{APPLICATION_ID}.algolia.net`\n- `https://{APPLICATION_ID}-dsn.algolia.net`.\n If your subscription includes a [Distributed Search Network](https://dashboard.algolia.com/infra),\n this ensures that requests are sent to servers closest to users.\n\nBoth URLs provide high availability by distributing requests with load balancing.\n\n**All requests must use HTTPS.**\n\n## Retry strategy\n\nTo guarantee a high availability, implement a retry strategy for all API requests using the URLs of your servers as fallbacks:\n\n- `https://{APPLICATION_ID}-1.algolianet.com`\n- `https://{APPLICATION_ID}-2.algolianet.com`\n- `https://{APPLICATION_ID}-3.algolianet.com`\n\nThese URLs use a different DNS provider than the primary URLs.\nYou should randomize this list to ensure an even load across the three servers.\n\nAll Algolia API clients implement this retry strategy.\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\nThe Recommend API returns JSON responses.\nSince JSON doesn't guarantee any specific ordering, don't rely on the order of attributes in the API response.\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 Recommend 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://{applicationId}.algolia.net",
|
|
11
|
-
"variables": {
|
|
12
|
-
"applicationId": {
|
|
13
|
-
"default": "ALGOLIA_APPLICATION_ID"
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
},
|
|
17
|
-
{
|
|
18
|
-
"url": "https://{applicationId}-1.algolianet.com",
|
|
19
|
-
"variables": {
|
|
20
|
-
"applicationId": {
|
|
21
|
-
"default": "ALGOLIA_APPLICATION_ID"
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
"url": "https://{applicationId}-2.algolianet.com",
|
|
27
|
-
"variables": {
|
|
28
|
-
"applicationId": {
|
|
29
|
-
"default": "ALGOLIA_APPLICATION_ID"
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
"url": "https://{applicationId}-3.algolianet.com",
|
|
35
|
-
"variables": {
|
|
36
|
-
"applicationId": {
|
|
37
|
-
"default": "ALGOLIA_APPLICATION_ID"
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
},
|
|
41
|
-
{
|
|
42
|
-
"url": "https://{applicationId}-dsn.algolia.net",
|
|
43
|
-
"variables": {
|
|
44
|
-
"applicationId": {
|
|
45
|
-
"default": "ALGOLIA_APPLICATION_ID"
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
],
|
|
50
|
-
"security": [
|
|
51
|
-
{
|
|
52
|
-
"applicationId": [],
|
|
53
|
-
"apiKey": []
|
|
54
|
-
}
|
|
55
|
-
],
|
|
56
|
-
"tags": [
|
|
57
|
-
{
|
|
58
|
-
"name": "recommendations",
|
|
59
|
-
"x-displayName": "Recommendations",
|
|
60
|
-
"description": "Retrieve recommendations from a pre-trained AI model. You can train models in the [Algolia dashboard](https://dashboard.algolia.com/recommend/).",
|
|
61
|
-
"externalDocs": {
|
|
62
|
-
"url": "https://www.algolia.com/doc/guides/algolia-recommend/overview/",
|
|
63
|
-
"description": "Related guide: Algolia Recommend.\n"
|
|
64
|
-
}
|
|
65
|
-
},
|
|
66
|
-
{
|
|
67
|
-
"name": "rules",
|
|
68
|
-
"x-displayName": "Rules",
|
|
69
|
-
"description": "Curate your recommendations with rules, which are _if_-_then_ statements.",
|
|
70
|
-
"externalDocs": {
|
|
71
|
-
"url": "https://www.algolia.com/doc/guides/algolia-recommend/how-to/rules/",
|
|
72
|
-
"description": "Related guide: Recommend Rules.\n"
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
],
|
|
76
|
-
"paths": {
|
|
77
|
-
"/{path}": {
|
|
78
|
-
"get": {
|
|
79
|
-
"operationId": "customGet",
|
|
80
|
-
"summary": "Send requests to the Algolia REST API",
|
|
81
|
-
"description": "This method lets you send requests to the Algolia REST API.",
|
|
82
|
-
"parameters": [
|
|
83
|
-
{
|
|
84
|
-
"$ref": "#/components/parameters/PathInPath"
|
|
85
|
-
},
|
|
86
|
-
{
|
|
87
|
-
"$ref": "#/components/parameters/Parameters"
|
|
88
|
-
}
|
|
89
|
-
],
|
|
90
|
-
"responses": {
|
|
91
|
-
"200": {
|
|
92
|
-
"description": "OK",
|
|
93
|
-
"content": {
|
|
94
|
-
"application/json": {
|
|
95
|
-
"schema": {
|
|
96
|
-
"type": "object"
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
},
|
|
101
|
-
"400": {
|
|
102
|
-
"$ref": "#/components/responses/BadRequest"
|
|
103
|
-
},
|
|
104
|
-
"402": {
|
|
105
|
-
"$ref": "#/components/responses/FeatureNotEnabled"
|
|
106
|
-
},
|
|
107
|
-
"403": {
|
|
108
|
-
"$ref": "#/components/responses/MethodNotAllowed"
|
|
109
|
-
},
|
|
110
|
-
"404": {
|
|
111
|
-
"$ref": "#/components/responses/IndexNotFound"
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
},
|
|
115
|
-
"post": {
|
|
116
|
-
"operationId": "customPost",
|
|
117
|
-
"requestBody": {
|
|
118
|
-
"description": "Parameters to send with the custom request.",
|
|
119
|
-
"content": {
|
|
120
|
-
"application/json": {
|
|
121
|
-
"schema": {
|
|
122
|
-
"type": "object"
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
},
|
|
127
|
-
"summary": "Send requests to the Algolia REST API",
|
|
128
|
-
"description": "This method lets you send requests to the Algolia REST API.",
|
|
129
|
-
"parameters": [
|
|
130
|
-
{
|
|
131
|
-
"$ref": "#/components/parameters/PathInPath"
|
|
132
|
-
},
|
|
133
|
-
{
|
|
134
|
-
"$ref": "#/components/parameters/Parameters"
|
|
135
|
-
}
|
|
136
|
-
],
|
|
137
|
-
"responses": {
|
|
138
|
-
"200": {
|
|
139
|
-
"description": "OK",
|
|
140
|
-
"content": {
|
|
141
|
-
"application/json": {
|
|
142
|
-
"schema": {
|
|
143
|
-
"type": "object"
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
},
|
|
148
|
-
"400": {
|
|
149
|
-
"$ref": "#/components/responses/BadRequest"
|
|
150
|
-
},
|
|
151
|
-
"402": {
|
|
152
|
-
"$ref": "#/components/responses/FeatureNotEnabled"
|
|
153
|
-
},
|
|
154
|
-
"403": {
|
|
155
|
-
"$ref": "#/components/responses/MethodNotAllowed"
|
|
156
|
-
},
|
|
157
|
-
"404": {
|
|
158
|
-
"$ref": "#/components/responses/IndexNotFound"
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
},
|
|
162
|
-
"put": {
|
|
163
|
-
"operationId": "customPut",
|
|
164
|
-
"requestBody": {
|
|
165
|
-
"description": "Parameters to send with the custom request.",
|
|
166
|
-
"content": {
|
|
167
|
-
"application/json": {
|
|
168
|
-
"schema": {
|
|
169
|
-
"type": "object"
|
|
170
|
-
}
|
|
171
|
-
}
|
|
172
|
-
}
|
|
173
|
-
},
|
|
174
|
-
"summary": "Send requests to the Algolia REST API",
|
|
175
|
-
"description": "This method lets you send requests to the Algolia REST API.",
|
|
176
|
-
"parameters": [
|
|
177
|
-
{
|
|
178
|
-
"$ref": "#/components/parameters/PathInPath"
|
|
179
|
-
},
|
|
180
|
-
{
|
|
181
|
-
"$ref": "#/components/parameters/Parameters"
|
|
182
|
-
}
|
|
183
|
-
],
|
|
184
|
-
"responses": {
|
|
185
|
-
"200": {
|
|
186
|
-
"description": "OK",
|
|
187
|
-
"content": {
|
|
188
|
-
"application/json": {
|
|
189
|
-
"schema": {
|
|
190
|
-
"type": "object"
|
|
191
|
-
}
|
|
192
|
-
}
|
|
193
|
-
}
|
|
194
|
-
},
|
|
195
|
-
"400": {
|
|
196
|
-
"$ref": "#/components/responses/BadRequest"
|
|
197
|
-
},
|
|
198
|
-
"402": {
|
|
199
|
-
"$ref": "#/components/responses/FeatureNotEnabled"
|
|
200
|
-
},
|
|
201
|
-
"403": {
|
|
202
|
-
"$ref": "#/components/responses/MethodNotAllowed"
|
|
203
|
-
},
|
|
204
|
-
"404": {
|
|
205
|
-
"$ref": "#/components/responses/IndexNotFound"
|
|
206
|
-
}
|
|
207
|
-
}
|
|
208
|
-
},
|
|
209
|
-
"delete": {
|
|
210
|
-
"operationId": "customDelete",
|
|
211
|
-
"summary": "Send requests to the Algolia REST API",
|
|
212
|
-
"description": "This method lets you send requests to the Algolia REST API.",
|
|
213
|
-
"parameters": [
|
|
214
|
-
{
|
|
215
|
-
"$ref": "#/components/parameters/PathInPath"
|
|
216
|
-
},
|
|
217
|
-
{
|
|
218
|
-
"$ref": "#/components/parameters/Parameters"
|
|
219
|
-
}
|
|
220
|
-
],
|
|
221
|
-
"responses": {
|
|
222
|
-
"200": {
|
|
223
|
-
"description": "OK",
|
|
224
|
-
"content": {
|
|
225
|
-
"application/json": {
|
|
226
|
-
"schema": {
|
|
227
|
-
"type": "object"
|
|
228
|
-
}
|
|
229
|
-
}
|
|
230
|
-
}
|
|
231
|
-
},
|
|
232
|
-
"400": {
|
|
233
|
-
"$ref": "#/components/responses/BadRequest"
|
|
234
|
-
},
|
|
235
|
-
"402": {
|
|
236
|
-
"$ref": "#/components/responses/FeatureNotEnabled"
|
|
237
|
-
},
|
|
238
|
-
"403": {
|
|
239
|
-
"$ref": "#/components/responses/MethodNotAllowed"
|
|
240
|
-
},
|
|
241
|
-
"404": {
|
|
242
|
-
"$ref": "#/components/responses/IndexNotFound"
|
|
243
|
-
}
|
|
244
|
-
}
|
|
245
|
-
}
|
|
246
|
-
},
|
|
247
|
-
"/1/indexes/*/recommendations": {
|
|
248
|
-
"post": {
|
|
249
|
-
"tags": [
|
|
250
|
-
"recommendations"
|
|
251
|
-
],
|
|
252
|
-
"operationId": "getRecommendations",
|
|
253
|
-
"x-use-read-transporter": true,
|
|
254
|
-
"x-cacheable": true,
|
|
255
|
-
"x-acl": [
|
|
256
|
-
"search"
|
|
257
|
-
],
|
|
258
|
-
"x-legacy-signature-recommend": true,
|
|
259
|
-
"summary": "Retrieve recommendations",
|
|
260
|
-
"description": "Retrieves recommendations from selected AI models.\n",
|
|
261
|
-
"requestBody": {
|
|
262
|
-
"required": true,
|
|
263
|
-
"content": {
|
|
264
|
-
"application/json": {
|
|
265
|
-
"schema": {
|
|
266
|
-
"title": "getRecommendationsParams",
|
|
267
|
-
"description": "Recommend request body.",
|
|
268
|
-
"type": "object",
|
|
269
|
-
"additionalProperties": false,
|
|
270
|
-
"properties": {
|
|
271
|
-
"requests": {
|
|
272
|
-
"type": "array",
|
|
273
|
-
"description": "Recommendation request with parameters depending on the requested model.",
|
|
274
|
-
"items": {
|
|
275
|
-
"$ref": "#/components/schemas/recommendationsRequest"
|
|
276
|
-
}
|
|
277
|
-
}
|
|
278
|
-
},
|
|
279
|
-
"required": [
|
|
280
|
-
"requests"
|
|
281
|
-
]
|
|
282
|
-
}
|
|
283
|
-
}
|
|
284
|
-
}
|
|
285
|
-
},
|
|
286
|
-
"responses": {
|
|
287
|
-
"200": {
|
|
288
|
-
"description": "OK",
|
|
289
|
-
"content": {
|
|
290
|
-
"application/json": {
|
|
291
|
-
"schema": {
|
|
292
|
-
"title": "getRecommendationsResponse",
|
|
293
|
-
"type": "object",
|
|
294
|
-
"additionalProperties": false,
|
|
295
|
-
"properties": {
|
|
296
|
-
"results": {
|
|
297
|
-
"type": "array",
|
|
298
|
-
"items": {
|
|
299
|
-
"$ref": "#/components/schemas/recommendationsResults"
|
|
300
|
-
}
|
|
301
|
-
}
|
|
302
|
-
},
|
|
303
|
-
"required": [
|
|
304
|
-
"results"
|
|
305
|
-
]
|
|
306
|
-
}
|
|
307
|
-
}
|
|
308
|
-
}
|
|
309
|
-
},
|
|
310
|
-
"400": {
|
|
311
|
-
"$ref": "#/components/responses/BadRequest"
|
|
312
|
-
},
|
|
313
|
-
"402": {
|
|
314
|
-
"$ref": "#/components/responses/FeatureNotEnabled"
|
|
315
|
-
},
|
|
316
|
-
"403": {
|
|
317
|
-
"$ref": "#/components/responses/MethodNotAllowed"
|
|
318
|
-
},
|
|
319
|
-
"404": {
|
|
320
|
-
"$ref": "#/components/responses/IndexNotFound"
|
|
321
|
-
}
|
|
322
|
-
}
|
|
323
|
-
}
|
|
324
|
-
},
|
|
325
|
-
"/1/indexes/{indexName}/{model}/recommend/rules/{objectID}": {
|
|
326
|
-
"get": {
|
|
327
|
-
"tags": [
|
|
328
|
-
"rules"
|
|
329
|
-
],
|
|
330
|
-
"operationId": "getRecommendRule",
|
|
331
|
-
"x-acl": [
|
|
332
|
-
"settings"
|
|
333
|
-
],
|
|
334
|
-
"summary": "Retrieve a rule",
|
|
335
|
-
"description": "Retrieves a Recommend rule that you previously created in the Algolia dashboard.",
|
|
336
|
-
"parameters": [
|
|
337
|
-
{
|
|
338
|
-
"$ref": "#/components/parameters/IndexName"
|
|
339
|
-
},
|
|
340
|
-
{
|
|
341
|
-
"$ref": "#/components/parameters/Models"
|
|
342
|
-
},
|
|
343
|
-
{
|
|
344
|
-
"$ref": "#/components/parameters/ObjectID"
|
|
345
|
-
}
|
|
346
|
-
],
|
|
347
|
-
"responses": {
|
|
348
|
-
"200": {
|
|
349
|
-
"description": "OK",
|
|
350
|
-
"content": {
|
|
351
|
-
"application/json": {
|
|
352
|
-
"schema": {
|
|
353
|
-
"$ref": "#/components/schemas/RecommendRule"
|
|
354
|
-
}
|
|
355
|
-
}
|
|
356
|
-
}
|
|
357
|
-
},
|
|
358
|
-
"400": {
|
|
359
|
-
"$ref": "#/components/responses/BadRequest"
|
|
360
|
-
},
|
|
361
|
-
"402": {
|
|
362
|
-
"$ref": "#/components/responses/FeatureNotEnabled"
|
|
363
|
-
},
|
|
364
|
-
"403": {
|
|
365
|
-
"$ref": "#/components/responses/MethodNotAllowed"
|
|
366
|
-
},
|
|
367
|
-
"404": {
|
|
368
|
-
"$ref": "#/components/responses/IndexNotFound"
|
|
369
|
-
}
|
|
370
|
-
}
|
|
371
|
-
},
|
|
372
|
-
"delete": {
|
|
373
|
-
"tags": [
|
|
374
|
-
"rules"
|
|
375
|
-
],
|
|
376
|
-
"operationId": "deleteRecommendRule",
|
|
377
|
-
"x-acl": [
|
|
378
|
-
"editSettings"
|
|
379
|
-
],
|
|
380
|
-
"summary": "Delete a rule",
|
|
381
|
-
"description": "Deletes a Recommend rule from a recommendation scenario.",
|
|
382
|
-
"parameters": [
|
|
383
|
-
{
|
|
384
|
-
"$ref": "#/components/parameters/IndexName"
|
|
385
|
-
},
|
|
386
|
-
{
|
|
387
|
-
"$ref": "#/components/parameters/Models"
|
|
388
|
-
},
|
|
389
|
-
{
|
|
390
|
-
"$ref": "#/components/parameters/ObjectID"
|
|
391
|
-
}
|
|
392
|
-
],
|
|
393
|
-
"responses": {
|
|
394
|
-
"200": {
|
|
395
|
-
"$ref": "#/components/responses/DeletedAt"
|
|
396
|
-
},
|
|
397
|
-
"400": {
|
|
398
|
-
"$ref": "#/components/responses/BadRequest"
|
|
399
|
-
},
|
|
400
|
-
"402": {
|
|
401
|
-
"$ref": "#/components/responses/FeatureNotEnabled"
|
|
402
|
-
},
|
|
403
|
-
"403": {
|
|
404
|
-
"$ref": "#/components/responses/MethodNotAllowed"
|
|
405
|
-
},
|
|
406
|
-
"404": {
|
|
407
|
-
"$ref": "#/components/responses/IndexNotFound"
|
|
408
|
-
}
|
|
409
|
-
}
|
|
410
|
-
}
|
|
411
|
-
},
|
|
412
|
-
"/1/indexes/{indexName}/{model}/task/{taskID}": {
|
|
413
|
-
"get": {
|
|
414
|
-
"tags": [
|
|
415
|
-
"rules"
|
|
416
|
-
],
|
|
417
|
-
"operationId": "getRecommendStatus",
|
|
418
|
-
"x-acl": [
|
|
419
|
-
"editSettings"
|
|
420
|
-
],
|
|
421
|
-
"summary": "Check task status",
|
|
422
|
-
"description": "Checks the status of a given task.\n\nDeleting a Recommend rule is asynchronous.\nWhen you delete a rule, a task is created on a queue and completed depending on the load on the server.\nThe API response includes a task ID that you can use to check the status.\n",
|
|
423
|
-
"parameters": [
|
|
424
|
-
{
|
|
425
|
-
"$ref": "#/components/parameters/IndexName"
|
|
426
|
-
},
|
|
427
|
-
{
|
|
428
|
-
"$ref": "#/components/parameters/Models"
|
|
429
|
-
},
|
|
430
|
-
{
|
|
431
|
-
"name": "taskID",
|
|
432
|
-
"in": "path",
|
|
433
|
-
"description": "Unique task identifier.",
|
|
434
|
-
"required": true,
|
|
435
|
-
"schema": {
|
|
436
|
-
"$ref": "#/components/schemas/taskID"
|
|
437
|
-
}
|
|
438
|
-
}
|
|
439
|
-
],
|
|
440
|
-
"responses": {
|
|
441
|
-
"200": {
|
|
442
|
-
"description": "OK",
|
|
443
|
-
"content": {
|
|
444
|
-
"application/json": {
|
|
445
|
-
"schema": {
|
|
446
|
-
"title": "getRecommendTaskResponse",
|
|
447
|
-
"type": "object",
|
|
448
|
-
"additionalProperties": false,
|
|
449
|
-
"properties": {
|
|
450
|
-
"status": {
|
|
451
|
-
"$ref": "#/components/schemas/taskStatus"
|
|
452
|
-
}
|
|
453
|
-
},
|
|
454
|
-
"required": [
|
|
455
|
-
"status"
|
|
456
|
-
]
|
|
457
|
-
}
|
|
458
|
-
}
|
|
459
|
-
}
|
|
460
|
-
},
|
|
461
|
-
"400": {
|
|
462
|
-
"$ref": "#/components/responses/BadRequest"
|
|
463
|
-
},
|
|
464
|
-
"402": {
|
|
465
|
-
"$ref": "#/components/responses/FeatureNotEnabled"
|
|
466
|
-
},
|
|
467
|
-
"403": {
|
|
468
|
-
"$ref": "#/components/responses/MethodNotAllowed"
|
|
469
|
-
},
|
|
470
|
-
"404": {
|
|
471
|
-
"$ref": "#/components/responses/IndexNotFound"
|
|
472
|
-
}
|
|
473
|
-
}
|
|
474
|
-
}
|
|
475
|
-
},
|
|
476
|
-
"/1/indexes/{indexName}/{model}/recommend/rules/search": {
|
|
477
|
-
"post": {
|
|
478
|
-
"tags": [
|
|
479
|
-
"rules"
|
|
480
|
-
],
|
|
481
|
-
"operationId": "searchRecommendRules",
|
|
482
|
-
"x-use-read-transporter": true,
|
|
483
|
-
"x-cacheable": true,
|
|
484
|
-
"x-acl": [
|
|
485
|
-
"settings"
|
|
486
|
-
],
|
|
487
|
-
"summary": "Search for rules",
|
|
488
|
-
"description": "Searches for Recommend rules.\n\nUse an empty query to list all rules for this recommendation scenario.\n",
|
|
489
|
-
"parameters": [
|
|
490
|
-
{
|
|
491
|
-
"$ref": "#/components/parameters/IndexName"
|
|
492
|
-
},
|
|
493
|
-
{
|
|
494
|
-
"$ref": "#/components/parameters/Models"
|
|
495
|
-
}
|
|
496
|
-
],
|
|
497
|
-
"requestBody": {
|
|
498
|
-
"content": {
|
|
499
|
-
"application/json": {
|
|
500
|
-
"schema": {
|
|
501
|
-
"title": "searchRecommendRulesParams",
|
|
502
|
-
"type": "object",
|
|
503
|
-
"description": "Recommend rules parameters.",
|
|
504
|
-
"additionalProperties": false,
|
|
505
|
-
"properties": {
|
|
506
|
-
"query": {
|
|
507
|
-
"$ref": "#/components/schemas/parameters_query"
|
|
508
|
-
},
|
|
509
|
-
"context": {
|
|
510
|
-
"type": "string",
|
|
511
|
-
"description": "Only search for rules with matching context.",
|
|
512
|
-
"example": "mobile"
|
|
513
|
-
},
|
|
514
|
-
"page": {
|
|
515
|
-
"$ref": "#/components/schemas/parameters_page"
|
|
516
|
-
},
|
|
517
|
-
"hitsPerPage": {
|
|
518
|
-
"$ref": "#/components/schemas/parameters_hitsPerPage"
|
|
519
|
-
},
|
|
520
|
-
"enabled": {
|
|
521
|
-
"type": "boolean",
|
|
522
|
-
"description": "Whether to only show rules where the value of their `enabled` property matches this parameter.\nIf absent, show all rules, regardless of their `enabled` property.\n"
|
|
523
|
-
},
|
|
524
|
-
"filters": {
|
|
525
|
-
"type": "string",
|
|
526
|
-
"description": "Filter expression. This only searches for rules matching the filter expression.",
|
|
527
|
-
"example": "objectID:rr-123456"
|
|
528
|
-
},
|
|
529
|
-
"facets": {
|
|
530
|
-
"type": "array",
|
|
531
|
-
"description": "Include facets and facet values in the response. Use `['*']` to include all facets.",
|
|
532
|
-
"example": [
|
|
533
|
-
"*"
|
|
534
|
-
],
|
|
535
|
-
"items": {
|
|
536
|
-
"type": "string",
|
|
537
|
-
"description": "Facet name for rule objects or `*` as wildcard character.",
|
|
538
|
-
"example": "condition.context"
|
|
539
|
-
}
|
|
540
|
-
},
|
|
541
|
-
"maxValuesPerFacet": {
|
|
542
|
-
"type": "integer",
|
|
543
|
-
"description": "Maximum number of values to return for each facet.",
|
|
544
|
-
"minimum": 1,
|
|
545
|
-
"maximum": 1000
|
|
546
|
-
}
|
|
547
|
-
}
|
|
548
|
-
}
|
|
549
|
-
}
|
|
550
|
-
}
|
|
551
|
-
},
|
|
552
|
-
"responses": {
|
|
553
|
-
"200": {
|
|
554
|
-
"description": "OK",
|
|
555
|
-
"content": {
|
|
556
|
-
"application/json": {
|
|
557
|
-
"schema": {
|
|
558
|
-
"title": "searchRecommendRulesResponse",
|
|
559
|
-
"type": "object",
|
|
560
|
-
"additionalProperties": false,
|
|
561
|
-
"required": [
|
|
562
|
-
"hits",
|
|
563
|
-
"nbHits",
|
|
564
|
-
"page",
|
|
565
|
-
"nbPages"
|
|
566
|
-
],
|
|
567
|
-
"properties": {
|
|
568
|
-
"hits": {
|
|
569
|
-
"type": "array",
|
|
570
|
-
"description": "Recommend rules that match the search criteria.",
|
|
571
|
-
"items": {
|
|
572
|
-
"$ref": "#/components/schemas/RecommendRule"
|
|
573
|
-
}
|
|
574
|
-
},
|
|
575
|
-
"nbHits": {
|
|
576
|
-
"$ref": "#/components/schemas/nbHits"
|
|
577
|
-
},
|
|
578
|
-
"page": {
|
|
579
|
-
"$ref": "#/components/schemas/page"
|
|
580
|
-
},
|
|
581
|
-
"nbPages": {
|
|
582
|
-
"$ref": "#/components/schemas/nbPages"
|
|
583
|
-
}
|
|
584
|
-
}
|
|
585
|
-
}
|
|
586
|
-
}
|
|
587
|
-
}
|
|
588
|
-
},
|
|
589
|
-
"400": {
|
|
590
|
-
"$ref": "#/components/responses/BadRequest"
|
|
591
|
-
},
|
|
592
|
-
"402": {
|
|
593
|
-
"$ref": "#/components/responses/FeatureNotEnabled"
|
|
594
|
-
},
|
|
595
|
-
"403": {
|
|
596
|
-
"$ref": "#/components/responses/MethodNotAllowed"
|
|
597
|
-
},
|
|
598
|
-
"404": {
|
|
599
|
-
"$ref": "#/components/responses/IndexNotFound"
|
|
600
|
-
}
|
|
601
|
-
}
|
|
602
|
-
}
|
|
603
|
-
},
|
|
604
|
-
"/1/indexes/{indexName}/{model}/recommend/rules/batch": {
|
|
605
|
-
"post": {
|
|
606
|
-
"tags": [
|
|
607
|
-
"rules"
|
|
608
|
-
],
|
|
609
|
-
"operationId": "batchRecommendRules",
|
|
610
|
-
"x-acl": [
|
|
611
|
-
"editSettings"
|
|
612
|
-
],
|
|
613
|
-
"summary": "Create or update a batch of Recommend Rules",
|
|
614
|
-
"description": "Create or update a batch of Recommend Rules\n\nEach Recommend Rule is created or updated, depending on whether a Recommend Rule with the same `objectID` already exists.\nYou may also specify `true` for `clearExistingRules`, in which case the batch will atomically replace all the existing Recommend Rules.\n\nRecommend Rules are similar to Search Rules, except that the conditions and consequences apply to a [source item](/doc/guides/algolia-recommend/overview/#recommend-models) instead of a query. The main differences are the following:\n- Conditions `pattern` and `anchoring` are unavailable.\n- Condition `filters` triggers if the source item matches the specified filters.\n- Condition `filters` accepts numeric filters.\n- Consequence `params` only covers filtering parameters.\n- Consequence `automaticFacetFilters` doesn't require a facet value placeholder (it tries to match the data source item's attributes instead).\n",
|
|
615
|
-
"parameters": [
|
|
616
|
-
{
|
|
617
|
-
"$ref": "#/components/parameters/IndexName"
|
|
618
|
-
},
|
|
619
|
-
{
|
|
620
|
-
"$ref": "#/components/parameters/Models"
|
|
621
|
-
}
|
|
622
|
-
],
|
|
623
|
-
"requestBody": {
|
|
624
|
-
"content": {
|
|
625
|
-
"application/json": {
|
|
626
|
-
"schema": {
|
|
627
|
-
"title": "rules",
|
|
628
|
-
"type": "array",
|
|
629
|
-
"description": "Recommend rules.",
|
|
630
|
-
"items": {
|
|
631
|
-
"$ref": "#/components/schemas/RecommendRule"
|
|
632
|
-
}
|
|
633
|
-
}
|
|
634
|
-
}
|
|
635
|
-
}
|
|
636
|
-
},
|
|
637
|
-
"responses": {
|
|
638
|
-
"200": {
|
|
639
|
-
"$ref": "#/components/responses/RecommendUpdatedAt"
|
|
640
|
-
},
|
|
641
|
-
"400": {
|
|
642
|
-
"$ref": "#/components/responses/BadRequest"
|
|
643
|
-
}
|
|
644
|
-
}
|
|
645
|
-
}
|
|
646
|
-
},
|
|
647
|
-
"/setClientApiKey": {
|
|
648
|
-
"get": {
|
|
649
|
-
"x-helper": true,
|
|
650
|
-
"x-asynchronous-helper": false,
|
|
651
|
-
"tags": [
|
|
652
|
-
"Api Key"
|
|
653
|
-
],
|
|
654
|
-
"operationId": "setClientApiKey",
|
|
655
|
-
"summary": "Switch the API key used to authenticate requests",
|
|
656
|
-
"description": "Switch the API key used to authenticate requests.\n",
|
|
657
|
-
"parameters": [
|
|
658
|
-
{
|
|
659
|
-
"in": "query",
|
|
660
|
-
"name": "apiKey",
|
|
661
|
-
"description": "API key to be used from now on.",
|
|
662
|
-
"required": true,
|
|
663
|
-
"schema": {
|
|
664
|
-
"type": "string"
|
|
665
|
-
}
|
|
666
|
-
}
|
|
667
|
-
],
|
|
668
|
-
"responses": {
|
|
669
|
-
"204": {
|
|
670
|
-
"description": "No content."
|
|
671
|
-
}
|
|
672
|
-
}
|
|
673
|
-
}
|
|
674
|
-
}
|
|
675
|
-
},
|
|
676
|
-
"components": {
|
|
677
|
-
"securitySchemes": {
|
|
678
|
-
"applicationId": {
|
|
679
|
-
"type": "apiKey",
|
|
680
|
-
"in": "header",
|
|
681
|
-
"name": "x-algolia-application-id",
|
|
682
|
-
"description": "Your Algolia application ID."
|
|
683
|
-
},
|
|
684
|
-
"apiKey": {
|
|
685
|
-
"type": "apiKey",
|
|
686
|
-
"in": "header",
|
|
687
|
-
"name": "x-algolia-api-key",
|
|
688
|
-
"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"
|
|
689
|
-
}
|
|
690
|
-
},
|
|
691
|
-
"parameters": {
|
|
692
|
-
"PathInPath": {
|
|
693
|
-
"name": "path",
|
|
694
|
-
"in": "path",
|
|
695
|
-
"description": "Path of the endpoint, for example `1/newFeature`.",
|
|
696
|
-
"required": true,
|
|
697
|
-
"schema": {
|
|
698
|
-
"type": "string",
|
|
699
|
-
"example": "/keys"
|
|
700
|
-
}
|
|
701
|
-
},
|
|
702
|
-
"Parameters": {
|
|
703
|
-
"name": "parameters",
|
|
704
|
-
"in": "query",
|
|
705
|
-
"description": "Query parameters to apply to the current query.",
|
|
706
|
-
"schema": {
|
|
707
|
-
"type": "object",
|
|
708
|
-
"additionalProperties": true
|
|
709
|
-
}
|
|
710
|
-
},
|
|
711
|
-
"IndexName": {
|
|
712
|
-
"name": "indexName",
|
|
713
|
-
"in": "path",
|
|
714
|
-
"description": "Name of the index on which to perform the operation.",
|
|
715
|
-
"required": true,
|
|
716
|
-
"schema": {
|
|
717
|
-
"type": "string",
|
|
718
|
-
"example": "ALGOLIA_INDEX_NAME"
|
|
719
|
-
}
|
|
720
|
-
},
|
|
721
|
-
"Models": {
|
|
722
|
-
"in": "path",
|
|
723
|
-
"name": "model",
|
|
724
|
-
"required": true,
|
|
725
|
-
"description": "[Recommend model](https://www.algolia.com/doc/guides/algolia-recommend/overview/#recommend-models).\n",
|
|
726
|
-
"schema": {
|
|
727
|
-
"$ref": "#/components/schemas/recommendModels"
|
|
728
|
-
}
|
|
729
|
-
},
|
|
730
|
-
"ObjectID": {
|
|
731
|
-
"name": "objectID",
|
|
732
|
-
"in": "path",
|
|
733
|
-
"description": "Unique record identifier.",
|
|
734
|
-
"required": true,
|
|
735
|
-
"schema": {
|
|
736
|
-
"$ref": "#/components/schemas/objectID"
|
|
737
|
-
}
|
|
738
|
-
}
|
|
739
|
-
},
|
|
740
|
-
"schemas": {
|
|
741
|
-
"ErrorBase": {
|
|
742
|
-
"description": "Error.",
|
|
743
|
-
"type": "object",
|
|
744
|
-
"x-keep-model": true,
|
|
745
|
-
"additionalProperties": true,
|
|
746
|
-
"properties": {
|
|
747
|
-
"message": {
|
|
748
|
-
"type": "string",
|
|
749
|
-
"example": "Invalid Application-Id or API-Key"
|
|
750
|
-
}
|
|
751
|
-
}
|
|
752
|
-
},
|
|
753
|
-
"indexName": {
|
|
754
|
-
"type": "string",
|
|
755
|
-
"example": "products",
|
|
756
|
-
"description": "Index name (case-sensitive)."
|
|
757
|
-
},
|
|
758
|
-
"similarQuery": {
|
|
759
|
-
"type": "string",
|
|
760
|
-
"description": "Keywords to be used instead of the search query to conduct a more broader search\nUsing the `similarQuery` parameter changes other settings\n- `queryType` is set to `prefixNone`.\n- `removeStopWords` is set to true.\n- `words` is set as the first ranking criterion.\n- All remaining words are treated as `optionalWords`\nSince the `similarQuery` is supposed to do a broad search, they usually return many results.\nCombine it with `filters` to narrow down the list of results.\n",
|
|
761
|
-
"default": "",
|
|
762
|
-
"example": "comedy drama crime Macy Buscemi",
|
|
763
|
-
"x-categories": [
|
|
764
|
-
"Search"
|
|
765
|
-
]
|
|
766
|
-
},
|
|
767
|
-
"filters": {
|
|
768
|
-
"type": "string",
|
|
769
|
-
"description": "Filter expression to only include items that match the filter criteria in the response.\n\nYou can use these filter expressions:\n\n- **Numeric filters.** `<facet> <op> <number>`, where `<op>` is one of `<`, `<=`, `=`, `!=`, `>`, `>=`.\n- **Ranges.** `<facet>:<lower> TO <upper>` where `<lower>` and `<upper>` are the lower and upper limits of the range (inclusive).\n- **Facet filters.** `<facet>:<value>` where `<facet>` is a facet attribute (case-sensitive) and `<value>` a facet value.\n- **Tag filters.** `_tags:<value>` or just `<value>` (case-sensitive).\n- **Boolean filters.** `<facet>: true | false`.\n\nYou can combine filters with `AND`, `OR`, and `NOT` operators with the following restrictions:\n\n- You can only combine filters of the same type with `OR`.\n **Not supported:** `facet:value OR num > 3`.\n- You can't use `NOT` with combinations of filters.\n **Not supported:** `NOT(facet:value OR facet:value)`\n- You can't combine conjunctions (`AND`) with `OR`.\n **Not supported:** `facet:value OR (facet:value AND facet:value)`\n\nUse quotes around your filters, if the facet attribute name or facet value has spaces, keywords (`OR`, `AND`, `NOT`), or quotes.\nIf a facet attribute is an array, the filter matches if it matches at least one element of the array.\n\nFor more information, see [Filters](https://www.algolia.com/doc/guides/managing-results/refine-results/filtering/).\n",
|
|
770
|
-
"example": "(category:Book OR category:Ebook) AND _tags:published",
|
|
771
|
-
"x-categories": [
|
|
772
|
-
"Filtering"
|
|
773
|
-
]
|
|
774
|
-
},
|
|
775
|
-
"facetFilters": {
|
|
776
|
-
"description": "Filter the search by facet values, so that only records with the same facet values are retrieved.\n\n**Prefer using the `filters` parameter, which supports all filter types and combinations with boolean operators.**\n\n- `[filter1, filter2]` is interpreted as `filter1 AND filter2`.\n- `[[filter1, filter2], filter3]` is interpreted as `filter1 OR filter2 AND filter3`.\n- `facet:-value` is interpreted as `NOT facet:value`.\n\nWhile it's best to avoid attributes that start with a `-`, you can still filter them by escaping with a backslash:\n`facet:\\-value`.\n",
|
|
777
|
-
"example": [
|
|
778
|
-
[
|
|
779
|
-
"category:Book",
|
|
780
|
-
"category:-Movie"
|
|
781
|
-
],
|
|
782
|
-
"author:John Doe"
|
|
783
|
-
],
|
|
784
|
-
"oneOf": [
|
|
785
|
-
{
|
|
786
|
-
"type": "array",
|
|
787
|
-
"items": {
|
|
788
|
-
"$ref": "#/components/schemas/facetFilters"
|
|
789
|
-
}
|
|
790
|
-
},
|
|
791
|
-
{
|
|
792
|
-
"type": "string"
|
|
793
|
-
}
|
|
794
|
-
],
|
|
795
|
-
"x-categories": [
|
|
796
|
-
"Filtering"
|
|
797
|
-
]
|
|
798
|
-
},
|
|
799
|
-
"optionalFilters": {
|
|
800
|
-
"description": "Filters to promote or demote records in the search results.\n\nOptional filters work like facet filters, but they don't exclude records from the search results.\nRecords that match the optional filter rank before records that don't match.\nIf you're using a negative filter `facet:-value`, matching records rank after records that don't match.\n\n- Optional filters don't work on virtual replicas.\n- Optional filters are applied _after_ sort-by attributes.\n- Optional filters are applied _before_ custom ranking attributes (in the default [ranking](https://www.algolia.com/doc/guides/managing-results/relevance-overview/in-depth/ranking-criteria/)).\n- Optional filters don't work with numeric attributes.\n",
|
|
801
|
-
"example": [
|
|
802
|
-
"category:Book",
|
|
803
|
-
"author:John Doe"
|
|
804
|
-
],
|
|
805
|
-
"oneOf": [
|
|
806
|
-
{
|
|
807
|
-
"type": "array",
|
|
808
|
-
"items": {
|
|
809
|
-
"$ref": "#/components/schemas/optionalFilters"
|
|
810
|
-
}
|
|
811
|
-
},
|
|
812
|
-
{
|
|
813
|
-
"type": "string"
|
|
814
|
-
}
|
|
815
|
-
],
|
|
816
|
-
"x-categories": [
|
|
817
|
-
"Filtering"
|
|
818
|
-
]
|
|
819
|
-
},
|
|
820
|
-
"numericFilters": {
|
|
821
|
-
"description": "Filter by numeric facets.\n\n**Prefer using the `filters` parameter, which supports all filter types and combinations with boolean operators.**\n\nYou can use numeric comparison operators: `<`, `<=`, `=`, `!=`, `>`, `>=`.\nComparisons are precise up to 3 decimals.\nYou can also provide ranges: `facet:<lower> TO <upper>`. The range includes the lower and upper boundaries.\nThe same combination rules apply as for `facetFilters`.\n",
|
|
822
|
-
"example": [
|
|
823
|
-
[
|
|
824
|
-
"inStock = 1",
|
|
825
|
-
"deliveryDate < 1441755506"
|
|
826
|
-
],
|
|
827
|
-
"price < 1000"
|
|
828
|
-
],
|
|
829
|
-
"oneOf": [
|
|
830
|
-
{
|
|
831
|
-
"type": "array",
|
|
832
|
-
"items": {
|
|
833
|
-
"$ref": "#/components/schemas/numericFilters"
|
|
834
|
-
}
|
|
835
|
-
},
|
|
836
|
-
{
|
|
837
|
-
"type": "string"
|
|
838
|
-
}
|
|
839
|
-
],
|
|
840
|
-
"x-categories": [
|
|
841
|
-
"Filtering"
|
|
842
|
-
]
|
|
843
|
-
},
|
|
844
|
-
"tagFilters": {
|
|
845
|
-
"description": "Filter the search by values of the special `_tags` attribute.\n\n**Prefer using the `filters` parameter, which supports all filter types and combinations with boolean operators.**\n\nDifferent from regular facets, `_tags` can only be used for filtering (including or excluding records).\nYou won't get a facet count.\nThe same combination and escaping rules apply as for `facetFilters`.\n",
|
|
846
|
-
"example": [
|
|
847
|
-
[
|
|
848
|
-
"Book",
|
|
849
|
-
"Movie"
|
|
850
|
-
],
|
|
851
|
-
"SciFi"
|
|
852
|
-
],
|
|
853
|
-
"oneOf": [
|
|
854
|
-
{
|
|
855
|
-
"type": "array",
|
|
856
|
-
"items": {
|
|
857
|
-
"$ref": "#/components/schemas/tagFilters"
|
|
858
|
-
}
|
|
859
|
-
},
|
|
860
|
-
{
|
|
861
|
-
"type": "string"
|
|
862
|
-
}
|
|
863
|
-
],
|
|
864
|
-
"x-categories": [
|
|
865
|
-
"Filtering"
|
|
866
|
-
]
|
|
867
|
-
},
|
|
868
|
-
"sumOrFiltersScores": {
|
|
869
|
-
"type": "boolean",
|
|
870
|
-
"description": "Whether to sum all filter scores\nIf true, all filter scores are summed.\nOtherwise, the maximum filter score is kept.\nFor more information, see [filter scores](https://www.algolia.com/doc/guides/managing-results/refine-results/filtering/in-depth/filter-scoring/#accumulating-scores-with-sumorfiltersscores).\n",
|
|
871
|
-
"default": false,
|
|
872
|
-
"x-categories": [
|
|
873
|
-
"Filtering"
|
|
874
|
-
]
|
|
875
|
-
},
|
|
876
|
-
"restrictSearchableAttributes": {
|
|
877
|
-
"type": "array",
|
|
878
|
-
"items": {
|
|
879
|
-
"type": "string"
|
|
880
|
-
},
|
|
881
|
-
"example": [
|
|
882
|
-
"title",
|
|
883
|
-
"author"
|
|
884
|
-
],
|
|
885
|
-
"description": "Restricts a search to a subset of your searchable attributes.\nAttribute names are case-sensitive.\n",
|
|
886
|
-
"default": [],
|
|
887
|
-
"x-categories": [
|
|
888
|
-
"Filtering"
|
|
889
|
-
]
|
|
890
|
-
},
|
|
891
|
-
"facets": {
|
|
892
|
-
"type": "array",
|
|
893
|
-
"items": {
|
|
894
|
-
"type": "string"
|
|
895
|
-
},
|
|
896
|
-
"description": "Facets for which to retrieve facet values that match the search criteria and the number of matching facet values\nTo retrieve all facets, use the wildcard character `*`.\nFor more information, see [facets](https://www.algolia.com/doc/guides/managing-results/refine-results/faceting/#contextual-facet-values-and-counts).\n",
|
|
897
|
-
"default": [],
|
|
898
|
-
"example": [
|
|
899
|
-
"*"
|
|
900
|
-
],
|
|
901
|
-
"x-categories": [
|
|
902
|
-
"Faceting"
|
|
903
|
-
]
|
|
904
|
-
},
|
|
905
|
-
"facetingAfterDistinct": {
|
|
906
|
-
"type": "boolean",
|
|
907
|
-
"description": "Whether faceting should be applied after deduplication with `distinct`\nThis leads to accurate facet counts when using faceting in combination with `distinct`.\nIt's usually better to use `afterDistinct` modifiers in the `attributesForFaceting` setting,\nas `facetingAfterDistinct` only computes correct facet counts if all records have the same facet values for the `attributeForDistinct`.\n",
|
|
908
|
-
"default": false,
|
|
909
|
-
"x-categories": [
|
|
910
|
-
"Faceting"
|
|
911
|
-
]
|
|
912
|
-
},
|
|
913
|
-
"aroundLatLng": {
|
|
914
|
-
"type": "string",
|
|
915
|
-
"description": "Coordinates for the center of a circle, expressed as a comma-separated string of latitude and longitude.\n\nOnly records included within a circle around this central location are included in the results.\nThe radius of the circle is determined by the `aroundRadius` and `minimumAroundRadius` settings.\nThis parameter is ignored if you also specify `insidePolygon` or `insideBoundingBox`.\n",
|
|
916
|
-
"example": "40.71,-74.01",
|
|
917
|
-
"default": "",
|
|
918
|
-
"x-categories": [
|
|
919
|
-
"Geo-Search"
|
|
920
|
-
]
|
|
921
|
-
},
|
|
922
|
-
"aroundLatLngViaIP": {
|
|
923
|
-
"type": "boolean",
|
|
924
|
-
"description": "Whether to obtain the coordinates from the request's IP address.",
|
|
925
|
-
"default": false,
|
|
926
|
-
"x-categories": [
|
|
927
|
-
"Geo-Search"
|
|
928
|
-
]
|
|
929
|
-
},
|
|
930
|
-
"aroundRadiusAll": {
|
|
931
|
-
"title": "all",
|
|
932
|
-
"type": "string",
|
|
933
|
-
"description": "Return all records with a valid `_geoloc` attribute. Don't filter by distance.",
|
|
934
|
-
"enum": [
|
|
935
|
-
"all"
|
|
936
|
-
]
|
|
937
|
-
},
|
|
938
|
-
"aroundRadius": {
|
|
939
|
-
"description": "Maximum radius for a search around a central location.\n\nThis parameter works in combination with the `aroundLatLng` and `aroundLatLngViaIP` parameters.\nBy default, the search radius is determined automatically from the density of hits around the central location.\nThe search radius is small if there are many hits close to the central coordinates.\n",
|
|
940
|
-
"oneOf": [
|
|
941
|
-
{
|
|
942
|
-
"type": "integer",
|
|
943
|
-
"minimum": 1,
|
|
944
|
-
"description": "Maximum search radius around a central location in meters."
|
|
945
|
-
},
|
|
946
|
-
{
|
|
947
|
-
"$ref": "#/components/schemas/aroundRadiusAll"
|
|
948
|
-
}
|
|
949
|
-
],
|
|
950
|
-
"x-categories": [
|
|
951
|
-
"Geo-Search"
|
|
952
|
-
]
|
|
953
|
-
},
|
|
954
|
-
"aroundPrecisionFromValue": {
|
|
955
|
-
"title": "range objects",
|
|
956
|
-
"type": "array",
|
|
957
|
-
"items": {
|
|
958
|
-
"title": "range",
|
|
959
|
-
"type": "object",
|
|
960
|
-
"description": "Range object with lower and upper values in meters to define custom ranges.",
|
|
961
|
-
"properties": {
|
|
962
|
-
"from": {
|
|
963
|
-
"type": "integer",
|
|
964
|
-
"description": "Lower boundary of a range in meters. The Geo ranking criterion considers all records within the range to be equal.",
|
|
965
|
-
"example": 20
|
|
966
|
-
},
|
|
967
|
-
"value": {
|
|
968
|
-
"type": "integer",
|
|
969
|
-
"description": "Upper boundary of a range in meters. The Geo ranking criterion considers all records within the range to be equal."
|
|
970
|
-
}
|
|
971
|
-
}
|
|
972
|
-
}
|
|
973
|
-
},
|
|
974
|
-
"aroundPrecision": {
|
|
975
|
-
"description": "Precision of a coordinate-based search in meters to group results with similar distances.\n\nThe Geo ranking criterion considers all matches within the same range of distances to be equal.\n",
|
|
976
|
-
"oneOf": [
|
|
977
|
-
{
|
|
978
|
-
"type": "integer",
|
|
979
|
-
"default": 10,
|
|
980
|
-
"description": "Distance in meters to group results by similar distances.\n\nFor example, if you set `aroundPrecision` to 100, records wihin 100 meters to the central coordinate are considered to have the same distance,\nas are records between 100 and 199 meters.\n"
|
|
981
|
-
},
|
|
982
|
-
{
|
|
983
|
-
"$ref": "#/components/schemas/aroundPrecisionFromValue"
|
|
984
|
-
}
|
|
985
|
-
],
|
|
986
|
-
"x-categories": [
|
|
987
|
-
"Geo-Search"
|
|
988
|
-
]
|
|
989
|
-
},
|
|
990
|
-
"minimumAroundRadius": {
|
|
991
|
-
"type": "integer",
|
|
992
|
-
"description": "Minimum radius (in meters) for a search around a location when `aroundRadius` isn't set.",
|
|
993
|
-
"minimum": 1,
|
|
994
|
-
"x-categories": [
|
|
995
|
-
"Geo-Search"
|
|
996
|
-
]
|
|
997
|
-
},
|
|
998
|
-
"insideBoundingBoxArray": {
|
|
999
|
-
"type": "array",
|
|
1000
|
-
"items": {
|
|
1001
|
-
"type": "array",
|
|
1002
|
-
"minItems": 4,
|
|
1003
|
-
"maxItems": 4,
|
|
1004
|
-
"items": {
|
|
1005
|
-
"type": "number",
|
|
1006
|
-
"format": "double"
|
|
1007
|
-
}
|
|
1008
|
-
},
|
|
1009
|
-
"description": "Coordinates for a rectangular area in which to search.\n\nEach bounding box is defined by the two opposite points of its diagonal, and expressed as latitude and longitude pair:\n`[p1 lat, p1 long, p2 lat, p2 long]`.\nProvide multiple bounding boxes as nested arrays.\nFor more information, see [rectangular area](https://www.algolia.com/doc/guides/managing-results/refine-results/geolocation/#filtering-inside-rectangular-or-polygonal-areas).\n",
|
|
1010
|
-
"example": [
|
|
1011
|
-
[
|
|
1012
|
-
47.3165,
|
|
1013
|
-
4.9665,
|
|
1014
|
-
47.3424,
|
|
1015
|
-
5.0201
|
|
1016
|
-
],
|
|
1017
|
-
[
|
|
1018
|
-
40.9234,
|
|
1019
|
-
2.1185,
|
|
1020
|
-
38.643,
|
|
1021
|
-
1.9916
|
|
1022
|
-
]
|
|
1023
|
-
],
|
|
1024
|
-
"x-categories": [
|
|
1025
|
-
"Geo-Search"
|
|
1026
|
-
]
|
|
1027
|
-
},
|
|
1028
|
-
"insideBoundingBox": {
|
|
1029
|
-
"oneOf": [
|
|
1030
|
-
{
|
|
1031
|
-
"type": "string"
|
|
1032
|
-
},
|
|
1033
|
-
{
|
|
1034
|
-
"type": "null"
|
|
1035
|
-
},
|
|
1036
|
-
{
|
|
1037
|
-
"$ref": "#/components/schemas/insideBoundingBoxArray"
|
|
1038
|
-
}
|
|
1039
|
-
]
|
|
1040
|
-
},
|
|
1041
|
-
"insidePolygon": {
|
|
1042
|
-
"type": "array",
|
|
1043
|
-
"items": {
|
|
1044
|
-
"type": "array",
|
|
1045
|
-
"minItems": 6,
|
|
1046
|
-
"maxItems": 20000,
|
|
1047
|
-
"items": {
|
|
1048
|
-
"type": "number",
|
|
1049
|
-
"format": "double"
|
|
1050
|
-
}
|
|
1051
|
-
},
|
|
1052
|
-
"description": "Coordinates of a polygon in which to search.\n\nPolygons are defined by 3 to 10,000 points. Each point is represented by its latitude and longitude.\nProvide multiple polygons as nested arrays.\nFor more information, see [filtering inside polygons](https://www.algolia.com/doc/guides/managing-results/refine-results/geolocation/#filtering-inside-rectangular-or-polygonal-areas).\nThis parameter is ignored if you also specify `insideBoundingBox`.\n",
|
|
1053
|
-
"example": [
|
|
1054
|
-
[
|
|
1055
|
-
47.3165,
|
|
1056
|
-
4.9665,
|
|
1057
|
-
47.3424,
|
|
1058
|
-
5.0201,
|
|
1059
|
-
47.32,
|
|
1060
|
-
4.9
|
|
1061
|
-
],
|
|
1062
|
-
[
|
|
1063
|
-
40.9234,
|
|
1064
|
-
2.1185,
|
|
1065
|
-
38.643,
|
|
1066
|
-
1.9916,
|
|
1067
|
-
39.2587,
|
|
1068
|
-
2.0104
|
|
1069
|
-
]
|
|
1070
|
-
],
|
|
1071
|
-
"x-categories": [
|
|
1072
|
-
"Geo-Search"
|
|
1073
|
-
]
|
|
1074
|
-
},
|
|
1075
|
-
"supportedLanguage": {
|
|
1076
|
-
"type": "string",
|
|
1077
|
-
"description": "ISO code for a supported language.",
|
|
1078
|
-
"enum": [
|
|
1079
|
-
"af",
|
|
1080
|
-
"ar",
|
|
1081
|
-
"az",
|
|
1082
|
-
"bg",
|
|
1083
|
-
"bn",
|
|
1084
|
-
"ca",
|
|
1085
|
-
"cs",
|
|
1086
|
-
"cy",
|
|
1087
|
-
"da",
|
|
1088
|
-
"de",
|
|
1089
|
-
"el",
|
|
1090
|
-
"en",
|
|
1091
|
-
"eo",
|
|
1092
|
-
"es",
|
|
1093
|
-
"et",
|
|
1094
|
-
"eu",
|
|
1095
|
-
"fa",
|
|
1096
|
-
"fi",
|
|
1097
|
-
"fo",
|
|
1098
|
-
"fr",
|
|
1099
|
-
"ga",
|
|
1100
|
-
"gl",
|
|
1101
|
-
"he",
|
|
1102
|
-
"hi",
|
|
1103
|
-
"hu",
|
|
1104
|
-
"hy",
|
|
1105
|
-
"id",
|
|
1106
|
-
"is",
|
|
1107
|
-
"it",
|
|
1108
|
-
"ja",
|
|
1109
|
-
"ka",
|
|
1110
|
-
"kk",
|
|
1111
|
-
"ko",
|
|
1112
|
-
"ku",
|
|
1113
|
-
"ky",
|
|
1114
|
-
"lt",
|
|
1115
|
-
"lv",
|
|
1116
|
-
"mi",
|
|
1117
|
-
"mn",
|
|
1118
|
-
"mr",
|
|
1119
|
-
"ms",
|
|
1120
|
-
"mt",
|
|
1121
|
-
"nb",
|
|
1122
|
-
"nl",
|
|
1123
|
-
"no",
|
|
1124
|
-
"ns",
|
|
1125
|
-
"pl",
|
|
1126
|
-
"ps",
|
|
1127
|
-
"pt",
|
|
1128
|
-
"pt-br",
|
|
1129
|
-
"qu",
|
|
1130
|
-
"ro",
|
|
1131
|
-
"ru",
|
|
1132
|
-
"sk",
|
|
1133
|
-
"sq",
|
|
1134
|
-
"sv",
|
|
1135
|
-
"sw",
|
|
1136
|
-
"ta",
|
|
1137
|
-
"te",
|
|
1138
|
-
"th",
|
|
1139
|
-
"tl",
|
|
1140
|
-
"tn",
|
|
1141
|
-
"tr",
|
|
1142
|
-
"tt",
|
|
1143
|
-
"uk",
|
|
1144
|
-
"ur",
|
|
1145
|
-
"uz",
|
|
1146
|
-
"zh"
|
|
1147
|
-
]
|
|
1148
|
-
},
|
|
1149
|
-
"naturalLanguages": {
|
|
1150
|
-
"type": "array",
|
|
1151
|
-
"items": {
|
|
1152
|
-
"$ref": "#/components/schemas/supportedLanguage"
|
|
1153
|
-
},
|
|
1154
|
-
"description": "ISO language codes that adjust settings that are useful for processing natural language queries (as opposed to keyword searches)\n- Sets `removeStopWords` and `ignorePlurals` to the list of provided languages.\n- Sets `removeWordsIfNoResults` to `allOptional`.\n- Adds a `natural_language` attribute to `ruleContexts` and `analyticsTags`.\n",
|
|
1155
|
-
"default": [],
|
|
1156
|
-
"x-categories": [
|
|
1157
|
-
"Languages"
|
|
1158
|
-
]
|
|
1159
|
-
},
|
|
1160
|
-
"ruleContexts": {
|
|
1161
|
-
"type": "array",
|
|
1162
|
-
"items": {
|
|
1163
|
-
"type": "string"
|
|
1164
|
-
},
|
|
1165
|
-
"description": "Assigns a rule context to the search query\n[Rule contexts](https://www.algolia.com/doc/guides/managing-results/rules/rules-overview/how-to/customize-search-results-by-platform/#whats-a-context) are strings that you can use to trigger matching rules.\n",
|
|
1166
|
-
"default": [],
|
|
1167
|
-
"example": [
|
|
1168
|
-
"mobile"
|
|
1169
|
-
],
|
|
1170
|
-
"x-categories": [
|
|
1171
|
-
"Rules"
|
|
1172
|
-
]
|
|
1173
|
-
},
|
|
1174
|
-
"personalizationImpact": {
|
|
1175
|
-
"type": "integer",
|
|
1176
|
-
"description": "Impact that Personalization should have on this search\nThe higher this value is, the more Personalization determines the ranking compared to other factors.\nFor more information, see [Understanding Personalization impact](https://www.algolia.com/doc/guides/personalization/personalizing-results/in-depth/configuring-personalization/#understanding-personalization-impact).\n",
|
|
1177
|
-
"default": 100,
|
|
1178
|
-
"minimum": 0,
|
|
1179
|
-
"maximum": 100,
|
|
1180
|
-
"x-categories": [
|
|
1181
|
-
"Personalization"
|
|
1182
|
-
]
|
|
1183
|
-
},
|
|
1184
|
-
"userToken": {
|
|
1185
|
-
"type": "string",
|
|
1186
|
-
"description": "Unique pseudonymous or anonymous user identifier.\n\nThis helps with analytics and click and conversion events.\nFor more information, see [user token](https://www.algolia.com/doc/guides/sending-events/concepts/usertoken/).\n",
|
|
1187
|
-
"example": "test-user-123",
|
|
1188
|
-
"x-categories": [
|
|
1189
|
-
"Personalization"
|
|
1190
|
-
]
|
|
1191
|
-
},
|
|
1192
|
-
"getRankingInfo": {
|
|
1193
|
-
"type": "boolean",
|
|
1194
|
-
"description": "Whether the search response should include detailed ranking information.",
|
|
1195
|
-
"default": false,
|
|
1196
|
-
"x-categories": [
|
|
1197
|
-
"Advanced"
|
|
1198
|
-
]
|
|
1199
|
-
},
|
|
1200
|
-
"synonyms": {
|
|
1201
|
-
"type": "boolean",
|
|
1202
|
-
"description": "Whether to take into account an index's synonyms for this search.",
|
|
1203
|
-
"default": true,
|
|
1204
|
-
"x-categories": [
|
|
1205
|
-
"Advanced"
|
|
1206
|
-
]
|
|
1207
|
-
},
|
|
1208
|
-
"clickAnalytics": {
|
|
1209
|
-
"type": "boolean",
|
|
1210
|
-
"description": "Whether to include a `queryID` attribute in the response\nThe query ID is a unique identifier for a search query and is required for tracking [click and conversion events](https://www.algolia.com/guides/sending-events/getting-started/).\n",
|
|
1211
|
-
"default": false,
|
|
1212
|
-
"x-categories": [
|
|
1213
|
-
"Analytics"
|
|
1214
|
-
]
|
|
1215
|
-
},
|
|
1216
|
-
"analytics": {
|
|
1217
|
-
"type": "boolean",
|
|
1218
|
-
"description": "Whether this search will be included in Analytics.",
|
|
1219
|
-
"default": true,
|
|
1220
|
-
"x-categories": [
|
|
1221
|
-
"Analytics"
|
|
1222
|
-
]
|
|
1223
|
-
},
|
|
1224
|
-
"analyticsTags": {
|
|
1225
|
-
"type": "array",
|
|
1226
|
-
"items": {
|
|
1227
|
-
"type": "string"
|
|
1228
|
-
},
|
|
1229
|
-
"description": "Tags to apply to the query for [segmenting analytics data](https://www.algolia.com/doc/guides/search-analytics/guides/segments/).",
|
|
1230
|
-
"default": []
|
|
1231
|
-
},
|
|
1232
|
-
"percentileComputation": {
|
|
1233
|
-
"type": "boolean",
|
|
1234
|
-
"description": "Whether to include this search when calculating processing-time percentiles.",
|
|
1235
|
-
"default": true,
|
|
1236
|
-
"x-categories": [
|
|
1237
|
-
"Advanced"
|
|
1238
|
-
]
|
|
1239
|
-
},
|
|
1240
|
-
"enableABTest": {
|
|
1241
|
-
"type": "boolean",
|
|
1242
|
-
"description": "Whether to enable A/B testing for this search.",
|
|
1243
|
-
"default": true,
|
|
1244
|
-
"x-categories": [
|
|
1245
|
-
"Advanced"
|
|
1246
|
-
]
|
|
1247
|
-
},
|
|
1248
|
-
"baseRecommendSearchParams": {
|
|
1249
|
-
"type": "object",
|
|
1250
|
-
"additionalProperties": false,
|
|
1251
|
-
"properties": {
|
|
1252
|
-
"similarQuery": {
|
|
1253
|
-
"$ref": "#/components/schemas/similarQuery"
|
|
1254
|
-
},
|
|
1255
|
-
"filters": {
|
|
1256
|
-
"$ref": "#/components/schemas/filters"
|
|
1257
|
-
},
|
|
1258
|
-
"facetFilters": {
|
|
1259
|
-
"$ref": "#/components/schemas/facetFilters"
|
|
1260
|
-
},
|
|
1261
|
-
"optionalFilters": {
|
|
1262
|
-
"$ref": "#/components/schemas/optionalFilters"
|
|
1263
|
-
},
|
|
1264
|
-
"numericFilters": {
|
|
1265
|
-
"$ref": "#/components/schemas/numericFilters"
|
|
1266
|
-
},
|
|
1267
|
-
"tagFilters": {
|
|
1268
|
-
"$ref": "#/components/schemas/tagFilters"
|
|
1269
|
-
},
|
|
1270
|
-
"sumOrFiltersScores": {
|
|
1271
|
-
"$ref": "#/components/schemas/sumOrFiltersScores"
|
|
1272
|
-
},
|
|
1273
|
-
"restrictSearchableAttributes": {
|
|
1274
|
-
"$ref": "#/components/schemas/restrictSearchableAttributes"
|
|
1275
|
-
},
|
|
1276
|
-
"facets": {
|
|
1277
|
-
"$ref": "#/components/schemas/facets"
|
|
1278
|
-
},
|
|
1279
|
-
"facetingAfterDistinct": {
|
|
1280
|
-
"$ref": "#/components/schemas/facetingAfterDistinct"
|
|
1281
|
-
},
|
|
1282
|
-
"aroundLatLng": {
|
|
1283
|
-
"$ref": "#/components/schemas/aroundLatLng"
|
|
1284
|
-
},
|
|
1285
|
-
"aroundLatLngViaIP": {
|
|
1286
|
-
"$ref": "#/components/schemas/aroundLatLngViaIP"
|
|
1287
|
-
},
|
|
1288
|
-
"aroundRadius": {
|
|
1289
|
-
"$ref": "#/components/schemas/aroundRadius"
|
|
1290
|
-
},
|
|
1291
|
-
"aroundPrecision": {
|
|
1292
|
-
"$ref": "#/components/schemas/aroundPrecision"
|
|
1293
|
-
},
|
|
1294
|
-
"minimumAroundRadius": {
|
|
1295
|
-
"$ref": "#/components/schemas/minimumAroundRadius"
|
|
1296
|
-
},
|
|
1297
|
-
"insideBoundingBox": {
|
|
1298
|
-
"$ref": "#/components/schemas/insideBoundingBox"
|
|
1299
|
-
},
|
|
1300
|
-
"insidePolygon": {
|
|
1301
|
-
"$ref": "#/components/schemas/insidePolygon"
|
|
1302
|
-
},
|
|
1303
|
-
"naturalLanguages": {
|
|
1304
|
-
"$ref": "#/components/schemas/naturalLanguages"
|
|
1305
|
-
},
|
|
1306
|
-
"ruleContexts": {
|
|
1307
|
-
"$ref": "#/components/schemas/ruleContexts"
|
|
1308
|
-
},
|
|
1309
|
-
"personalizationImpact": {
|
|
1310
|
-
"$ref": "#/components/schemas/personalizationImpact"
|
|
1311
|
-
},
|
|
1312
|
-
"userToken": {
|
|
1313
|
-
"$ref": "#/components/schemas/userToken"
|
|
1314
|
-
},
|
|
1315
|
-
"getRankingInfo": {
|
|
1316
|
-
"$ref": "#/components/schemas/getRankingInfo"
|
|
1317
|
-
},
|
|
1318
|
-
"synonyms": {
|
|
1319
|
-
"$ref": "#/components/schemas/synonyms"
|
|
1320
|
-
},
|
|
1321
|
-
"clickAnalytics": {
|
|
1322
|
-
"$ref": "#/components/schemas/clickAnalytics"
|
|
1323
|
-
},
|
|
1324
|
-
"analytics": {
|
|
1325
|
-
"$ref": "#/components/schemas/analytics"
|
|
1326
|
-
},
|
|
1327
|
-
"analyticsTags": {
|
|
1328
|
-
"$ref": "#/components/schemas/analyticsTags"
|
|
1329
|
-
},
|
|
1330
|
-
"percentileComputation": {
|
|
1331
|
-
"$ref": "#/components/schemas/percentileComputation"
|
|
1332
|
-
},
|
|
1333
|
-
"enableABTest": {
|
|
1334
|
-
"$ref": "#/components/schemas/enableABTest"
|
|
1335
|
-
}
|
|
1336
|
-
}
|
|
1337
|
-
},
|
|
1338
|
-
"query": {
|
|
1339
|
-
"type": "string",
|
|
1340
|
-
"description": "Search query.",
|
|
1341
|
-
"default": "",
|
|
1342
|
-
"x-categories": [
|
|
1343
|
-
"Search"
|
|
1344
|
-
]
|
|
1345
|
-
},
|
|
1346
|
-
"searchParamsQuery": {
|
|
1347
|
-
"type": "object",
|
|
1348
|
-
"additionalProperties": false,
|
|
1349
|
-
"properties": {
|
|
1350
|
-
"query": {
|
|
1351
|
-
"$ref": "#/components/schemas/query"
|
|
1352
|
-
}
|
|
1353
|
-
}
|
|
1354
|
-
},
|
|
1355
|
-
"userData": {
|
|
1356
|
-
"example": {
|
|
1357
|
-
"settingID": "f2a7b51e3503acc6a39b3784ffb84300",
|
|
1358
|
-
"pluginVersion": "1.6.0"
|
|
1359
|
-
},
|
|
1360
|
-
"description": "An object with custom data.\n\nYou can store up to 32kB as custom data.\n",
|
|
1361
|
-
"default": {},
|
|
1362
|
-
"x-categories": [
|
|
1363
|
-
"Advanced"
|
|
1364
|
-
]
|
|
1365
|
-
},
|
|
1366
|
-
"maxFacetHits": {
|
|
1367
|
-
"type": "integer",
|
|
1368
|
-
"description": "Maximum number of facet values to return when [searching for facet values](https://www.algolia.com/doc/guides/managing-results/refine-results/faceting/#search-for-facet-values).",
|
|
1369
|
-
"maximum": 100,
|
|
1370
|
-
"default": 10,
|
|
1371
|
-
"x-categories": [
|
|
1372
|
-
"Advanced"
|
|
1373
|
-
]
|
|
1374
|
-
},
|
|
1375
|
-
"baseIndexSettings": {
|
|
1376
|
-
"type": "object",
|
|
1377
|
-
"additionalProperties": false,
|
|
1378
|
-
"properties": {
|
|
1379
|
-
"attributesForFaceting": {
|
|
1380
|
-
"type": "array",
|
|
1381
|
-
"items": {
|
|
1382
|
-
"type": "string"
|
|
1383
|
-
},
|
|
1384
|
-
"example": [
|
|
1385
|
-
"author",
|
|
1386
|
-
"filterOnly(isbn)",
|
|
1387
|
-
"searchable(edition)",
|
|
1388
|
-
"afterDistinct(category)",
|
|
1389
|
-
"afterDistinct(searchable(publisher))"
|
|
1390
|
-
],
|
|
1391
|
-
"description": "Attributes used for [faceting](https://www.algolia.com/doc/guides/managing-results/refine-results/faceting/).\n\nFacets are attributes that let you categorize search results.\nThey can be used for filtering search results.\nBy default, no attribute is used for faceting.\nAttribute names are case-sensitive.\n\n**Modifiers**\n\n- `filterOnly(\"ATTRIBUTE\")`.\n Allows the attribute to be used as a filter but doesn't evaluate the facet values.\n\n- `searchable(\"ATTRIBUTE\")`.\n Allows searching for facet values.\n\n- `afterDistinct(\"ATTRIBUTE\")`.\n Evaluates the facet count _after_ deduplication with `distinct`.\n This ensures accurate facet counts.\n You can apply this modifier to searchable facets: `afterDistinct(searchable(ATTRIBUTE))`.\n",
|
|
1392
|
-
"default": [],
|
|
1393
|
-
"x-categories": [
|
|
1394
|
-
"Faceting"
|
|
1395
|
-
]
|
|
1396
|
-
},
|
|
1397
|
-
"replicas": {
|
|
1398
|
-
"type": "array",
|
|
1399
|
-
"items": {
|
|
1400
|
-
"type": "string"
|
|
1401
|
-
},
|
|
1402
|
-
"example": [
|
|
1403
|
-
"virtual(prod_products_price_asc)",
|
|
1404
|
-
"dev_products_replica"
|
|
1405
|
-
],
|
|
1406
|
-
"description": "Creates [replica indices](https://www.algolia.com/doc/guides/managing-results/refine-results/sorting/in-depth/replicas/).\n\nReplicas are copies of a primary index with the same records but different settings, synonyms, or rules.\nIf you want to offer a different ranking or sorting of your search results, you'll use replica indices.\nAll index operations on a primary index are automatically forwarded to its replicas.\nTo add a replica index, you must provide the complete set of replicas to this parameter.\nIf you omit a replica from this list, the replica turns into a regular, standalone index that will no longer be synced with the primary index.\n\n**Modifier**\n\n- `virtual(\"REPLICA\")`.\n Create a virtual replica,\n Virtual replicas don't increase the number of records and are optimized for [Relevant sorting](https://www.algolia.com/doc/guides/managing-results/refine-results/sorting/in-depth/relevant-sort/).\n",
|
|
1407
|
-
"default": [],
|
|
1408
|
-
"x-categories": [
|
|
1409
|
-
"Ranking"
|
|
1410
|
-
]
|
|
1411
|
-
},
|
|
1412
|
-
"paginationLimitedTo": {
|
|
1413
|
-
"type": "integer",
|
|
1414
|
-
"example": 100,
|
|
1415
|
-
"description": "Maximum number of search results that can be obtained through pagination.\n\nHigher pagination limits might slow down your search.\nFor pagination limits above 1,000, the sorting of results beyond the 1,000th hit can't be guaranteed.\n",
|
|
1416
|
-
"default": 1000,
|
|
1417
|
-
"maximum": 20000
|
|
1418
|
-
},
|
|
1419
|
-
"unretrievableAttributes": {
|
|
1420
|
-
"type": "array",
|
|
1421
|
-
"items": {
|
|
1422
|
-
"type": "string"
|
|
1423
|
-
},
|
|
1424
|
-
"example": [
|
|
1425
|
-
"total_sales"
|
|
1426
|
-
],
|
|
1427
|
-
"description": "Attributes that can't be retrieved at query time.\n\nThis can be useful if you want to use an attribute for ranking or to [restrict access](https://www.algolia.com/doc/guides/security/api-keys/how-to/user-restricted-access-to-data/),\nbut don't want to include it in the search results.\nAttribute names are case-sensitive.\n",
|
|
1428
|
-
"default": [],
|
|
1429
|
-
"x-categories": [
|
|
1430
|
-
"Attributes"
|
|
1431
|
-
]
|
|
1432
|
-
},
|
|
1433
|
-
"disableTypoToleranceOnWords": {
|
|
1434
|
-
"type": "array",
|
|
1435
|
-
"items": {
|
|
1436
|
-
"type": "string"
|
|
1437
|
-
},
|
|
1438
|
-
"example": [
|
|
1439
|
-
"wheel",
|
|
1440
|
-
"1X2BCD"
|
|
1441
|
-
],
|
|
1442
|
-
"description": "Creates a list of [words which require exact matches](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/typo-tolerance/in-depth/configuring-typo-tolerance/#turn-off-typo-tolerance-for-certain-words).\nThis also turns off [word splitting and concatenation](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/splitting-and-concatenation/) for the specified words.\n",
|
|
1443
|
-
"default": [],
|
|
1444
|
-
"x-categories": [
|
|
1445
|
-
"Typos"
|
|
1446
|
-
]
|
|
1447
|
-
},
|
|
1448
|
-
"attributesToTransliterate": {
|
|
1449
|
-
"description": "Attributes, for which you want to support [Japanese transliteration](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/language-specific-configurations/#japanese-transliteration-and-type-ahead).\n\nTransliteration supports searching in any of the Japanese writing systems.\nTo support transliteration, you must set the indexing language to Japanese.\nAttribute names are case-sensitive.\n",
|
|
1450
|
-
"type": "array",
|
|
1451
|
-
"items": {
|
|
1452
|
-
"type": "string"
|
|
1453
|
-
},
|
|
1454
|
-
"example": [
|
|
1455
|
-
"name",
|
|
1456
|
-
"description"
|
|
1457
|
-
],
|
|
1458
|
-
"x-categories": [
|
|
1459
|
-
"Languages"
|
|
1460
|
-
]
|
|
1461
|
-
},
|
|
1462
|
-
"camelCaseAttributes": {
|
|
1463
|
-
"type": "array",
|
|
1464
|
-
"items": {
|
|
1465
|
-
"type": "string"
|
|
1466
|
-
},
|
|
1467
|
-
"example": [
|
|
1468
|
-
"description"
|
|
1469
|
-
],
|
|
1470
|
-
"description": "Attributes for which to split [camel case](https://wikipedia.org/wiki/Camel_case) words.\nAttribute names are case-sensitive.\n",
|
|
1471
|
-
"default": [],
|
|
1472
|
-
"x-categories": [
|
|
1473
|
-
"Languages"
|
|
1474
|
-
]
|
|
1475
|
-
},
|
|
1476
|
-
"decompoundedAttributes": {
|
|
1477
|
-
"type": "object",
|
|
1478
|
-
"example": {
|
|
1479
|
-
"de": [
|
|
1480
|
-
"name"
|
|
1481
|
-
]
|
|
1482
|
-
},
|
|
1483
|
-
"description": "Searchable attributes to which Algolia should apply [word segmentation](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/how-to/customize-segmentation/) (decompounding).\nAttribute names are case-sensitive.\n\nCompound words are formed by combining two or more individual words,\nand are particularly prevalent in Germanic languages—for example, \"firefighter\".\nWith decompounding, the individual components are indexed separately.\n\nYou can specify different lists for different languages.\nDecompounding is supported for these languages:\nDutch (`nl`), German (`de`), Finnish (`fi`), Danish (`da`), Swedish (`sv`), and Norwegian (`no`).\nDecompounding doesn't work for words with [non-spacing mark Unicode characters](https://www.charactercodes.net/category/non-spacing_mark).\nFor example, `Gartenstühle` won't be decompounded if the `ü` consists of `u` (U+0075) and `◌̈` (U+0308).\n",
|
|
1484
|
-
"default": {},
|
|
1485
|
-
"x-categories": [
|
|
1486
|
-
"Languages"
|
|
1487
|
-
]
|
|
1488
|
-
},
|
|
1489
|
-
"indexLanguages": {
|
|
1490
|
-
"type": "array",
|
|
1491
|
-
"items": {
|
|
1492
|
-
"$ref": "#/components/schemas/supportedLanguage"
|
|
1493
|
-
},
|
|
1494
|
-
"example": [
|
|
1495
|
-
"ja"
|
|
1496
|
-
],
|
|
1497
|
-
"description": "Languages for language-specific processing steps, such as word detection and dictionary settings.\n\n**You should always specify an indexing language.**\nIf you don't specify an indexing language, the search engine uses all [supported languages](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/supported-languages/),\nor the languages you specified with the `ignorePlurals` or `removeStopWords` parameters.\nThis can lead to unexpected search results.\nFor more information, see [Language-specific configuration](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/language-specific-configurations/).\n",
|
|
1498
|
-
"default": [],
|
|
1499
|
-
"x-categories": [
|
|
1500
|
-
"Languages"
|
|
1501
|
-
]
|
|
1502
|
-
},
|
|
1503
|
-
"disablePrefixOnAttributes": {
|
|
1504
|
-
"type": "array",
|
|
1505
|
-
"items": {
|
|
1506
|
-
"type": "string"
|
|
1507
|
-
},
|
|
1508
|
-
"example": [
|
|
1509
|
-
"sku"
|
|
1510
|
-
],
|
|
1511
|
-
"description": "Searchable attributes for which you want to turn off [prefix matching](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/override-search-engine-defaults/#adjusting-prefix-search).\nAttribute names are case-sensitive.\n",
|
|
1512
|
-
"default": [],
|
|
1513
|
-
"x-categories": [
|
|
1514
|
-
"Query strategy"
|
|
1515
|
-
]
|
|
1516
|
-
},
|
|
1517
|
-
"allowCompressionOfIntegerArray": {
|
|
1518
|
-
"type": "boolean",
|
|
1519
|
-
"description": "Whether arrays with exclusively non-negative integers should be compressed for better performance.\nIf true, the compressed arrays may be reordered.\n",
|
|
1520
|
-
"default": false,
|
|
1521
|
-
"x-categories": [
|
|
1522
|
-
"Performance"
|
|
1523
|
-
]
|
|
1524
|
-
},
|
|
1525
|
-
"numericAttributesForFiltering": {
|
|
1526
|
-
"type": "array",
|
|
1527
|
-
"items": {
|
|
1528
|
-
"type": "string"
|
|
1529
|
-
},
|
|
1530
|
-
"description": "Numeric attributes that can be used as [numerical filters](https://www.algolia.com/doc/guides/managing-results/rules/detecting-intent/how-to/applying-a-custom-filter-for-a-specific-query/#numerical-filters).\nAttribute names are case-sensitive.\n\nBy default, all numeric attributes are available as numerical filters.\nFor faster indexing, reduce the number of numeric attributes.\n\nTo turn off filtering for all numeric attributes, specify an attribute that doesn't exist in your index, such as `NO_NUMERIC_FILTERING`.\n\n**Modifier**\n\n- `equalOnly(\"ATTRIBUTE\")`.\n Support only filtering based on equality comparisons `=` and `!=`.\n",
|
|
1531
|
-
"example": [
|
|
1532
|
-
"equalOnly(quantity)",
|
|
1533
|
-
"popularity"
|
|
1534
|
-
],
|
|
1535
|
-
"default": [],
|
|
1536
|
-
"x-categories": [
|
|
1537
|
-
"Performance"
|
|
1538
|
-
]
|
|
1539
|
-
},
|
|
1540
|
-
"separatorsToIndex": {
|
|
1541
|
-
"type": "string",
|
|
1542
|
-
"example": "+#",
|
|
1543
|
-
"description": "Control which non-alphanumeric characters are indexed.\n\nBy default, Algolia ignores [non-alphanumeric characters](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/typo-tolerance/how-to/how-to-search-in-hyphenated-attributes/#handling-non-alphanumeric-characters) like hyphen (`-`), plus (`+`), and parentheses (`(`,`)`).\nTo include such characters, define them with `separatorsToIndex`.\n\nSeparators are all non-letter characters except spaces and currency characters, such as $€£¥.\n\nWith `separatorsToIndex`, Algolia treats separator characters as separate words.\nFor example, in a search for \"Disney+\", Algolia considers \"Disney\" and \"+\" as two separate words.\n",
|
|
1544
|
-
"default": "",
|
|
1545
|
-
"x-categories": [
|
|
1546
|
-
"Typos"
|
|
1547
|
-
]
|
|
1548
|
-
},
|
|
1549
|
-
"searchableAttributes": {
|
|
1550
|
-
"type": "array",
|
|
1551
|
-
"items": {
|
|
1552
|
-
"type": "string"
|
|
1553
|
-
},
|
|
1554
|
-
"example": [
|
|
1555
|
-
"title,alternative_title",
|
|
1556
|
-
"author",
|
|
1557
|
-
"unordered(text)",
|
|
1558
|
-
"emails.personal"
|
|
1559
|
-
],
|
|
1560
|
-
"description": "Attributes used for searching. Attribute names are case-sensitive.\n\nBy default, all attributes are searchable and the [Attribute](https://www.algolia.com/doc/guides/managing-results/relevance-overview/in-depth/ranking-criteria/#attribute) ranking criterion is turned off.\nWith a non-empty list, Algolia only returns results with matches in the selected attributes.\nIn addition, the Attribute ranking criterion is turned on: matches in attributes that are higher in the list of `searchableAttributes` rank first.\nTo make matches in two attributes rank equally, include them in a comma-separated string, such as `\"title,alternate_title\"`.\nAttributes with the same priority are always unordered.\n\nFor more information, see [Searchable attributes](https://www.algolia.com/doc/guides/sending-and-managing-data/prepare-your-data/how-to/setting-searchable-attributes/).\n\n**Modifier**\n\n- `unordered(\"ATTRIBUTE\")`.\n Ignore the position of a match within the attribute.\n\nWithout a modifier, matches at the beginning of an attribute rank higher than matches at the end.\n",
|
|
1561
|
-
"default": [],
|
|
1562
|
-
"x-categories": [
|
|
1563
|
-
"Attributes"
|
|
1564
|
-
]
|
|
1565
|
-
},
|
|
1566
|
-
"userData": {
|
|
1567
|
-
"$ref": "#/components/schemas/userData"
|
|
1568
|
-
},
|
|
1569
|
-
"customNormalization": {
|
|
1570
|
-
"description": "Characters and their normalized replacements.\nThis overrides Algolia's default [normalization](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/normalization/).\n",
|
|
1571
|
-
"type": "object",
|
|
1572
|
-
"example": {
|
|
1573
|
-
"default": {
|
|
1574
|
-
"ä": "ae",
|
|
1575
|
-
"ü": "ue"
|
|
1576
|
-
}
|
|
1577
|
-
},
|
|
1578
|
-
"additionalProperties": {
|
|
1579
|
-
"type": "object",
|
|
1580
|
-
"additionalProperties": {
|
|
1581
|
-
"type": "string"
|
|
1582
|
-
}
|
|
1583
|
-
},
|
|
1584
|
-
"x-categories": [
|
|
1585
|
-
"Languages"
|
|
1586
|
-
]
|
|
1587
|
-
},
|
|
1588
|
-
"attributeForDistinct": {
|
|
1589
|
-
"description": "Attribute that should be used to establish groups of results.\nAttribute names are case-sensitive.\n\nAll records with the same value for this attribute are considered a group.\nYou can combine `attributeForDistinct` with the `distinct` search parameter to control\nhow many items per group are included in the search results.\n\nIf you want to use the same attribute also for faceting, use the `afterDistinct` modifier of the `attributesForFaceting` setting.\nThis applies faceting _after_ deduplication, which will result in accurate facet counts.\n",
|
|
1590
|
-
"example": "url",
|
|
1591
|
-
"type": "string"
|
|
1592
|
-
},
|
|
1593
|
-
"maxFacetHits": {
|
|
1594
|
-
"$ref": "#/components/schemas/maxFacetHits"
|
|
1595
|
-
},
|
|
1596
|
-
"keepDiacriticsOnCharacters": {
|
|
1597
|
-
"type": "string",
|
|
1598
|
-
"example": "øé",
|
|
1599
|
-
"description": "Characters for which diacritics should be preserved.\n\nBy default, Algolia removes diacritics from letters.\nFor example, `é` becomes `e`. If this causes issues in your search,\nyou can specify characters that should keep their diacritics.\n",
|
|
1600
|
-
"default": "",
|
|
1601
|
-
"x-categories": [
|
|
1602
|
-
"Languages"
|
|
1603
|
-
]
|
|
1604
|
-
},
|
|
1605
|
-
"customRanking": {
|
|
1606
|
-
"type": "array",
|
|
1607
|
-
"items": {
|
|
1608
|
-
"type": "string"
|
|
1609
|
-
},
|
|
1610
|
-
"example": [
|
|
1611
|
-
"desc(popularity)",
|
|
1612
|
-
"asc(price)"
|
|
1613
|
-
],
|
|
1614
|
-
"description": "Attributes to use as [custom ranking](https://www.algolia.com/doc/guides/managing-results/must-do/custom-ranking/).\nAttribute names are case-sensitive.\n\nThe custom ranking attributes decide which items are shown first if the other ranking criteria are equal.\n\nRecords with missing values for your selected custom ranking attributes are always sorted last.\nBoolean attributes are sorted based on their alphabetical order.\n\n**Modifiers**\n\n- `asc(\"ATTRIBUTE\")`.\n Sort the index by the values of an attribute, in ascending order.\n\n- `desc(\"ATTRIBUTE\")`.\n Sort the index by the values of an attribute, in descending order.\n\nIf you use two or more custom ranking attributes,\n[reduce the precision](https://www.algolia.com/doc/guides/managing-results/must-do/custom-ranking/how-to/controlling-custom-ranking-metrics-precision/) of your first attributes,\nor the other attributes will never be applied.\n",
|
|
1615
|
-
"default": [],
|
|
1616
|
-
"x-categories": [
|
|
1617
|
-
"Ranking"
|
|
1618
|
-
]
|
|
1619
|
-
}
|
|
1620
|
-
}
|
|
1621
|
-
},
|
|
1622
|
-
"attributesToRetrieve": {
|
|
1623
|
-
"type": "array",
|
|
1624
|
-
"items": {
|
|
1625
|
-
"type": "string"
|
|
1626
|
-
},
|
|
1627
|
-
"example": [
|
|
1628
|
-
"author",
|
|
1629
|
-
"title",
|
|
1630
|
-
"content"
|
|
1631
|
-
],
|
|
1632
|
-
"description": "Attributes to include in the API response\nTo reduce the size of your response, you can retrieve only some of the attributes.\nAttribute names are case-sensitive\n- `*` retrieves all attributes, except attributes included in the `customRanking` and `unretrievableAttributes` settings.\n- To retrieve all attributes except a specific one, prefix the attribute with a dash and combine it with the `*`: `[\"*\", \"-ATTRIBUTE\"]`.\n- The `objectID` attribute is always included.\n",
|
|
1633
|
-
"default": [
|
|
1634
|
-
"*"
|
|
1635
|
-
],
|
|
1636
|
-
"x-categories": [
|
|
1637
|
-
"Attributes"
|
|
1638
|
-
]
|
|
1639
|
-
},
|
|
1640
|
-
"ranking": {
|
|
1641
|
-
"type": "array",
|
|
1642
|
-
"items": {
|
|
1643
|
-
"type": "string"
|
|
1644
|
-
},
|
|
1645
|
-
"description": "Determines the order in which Algolia returns your results.\n\nBy default, each entry corresponds to a [ranking criteria](https://www.algolia.com/doc/guides/managing-results/relevance-overview/in-depth/ranking-criteria/).\nThe tie-breaking algorithm sequentially applies each criterion in the order they're specified.\nIf you configure a replica index for [sorting by an attribute](https://www.algolia.com/doc/guides/managing-results/refine-results/sorting/how-to/sort-by-attribute/),\nyou put the sorting attribute at the top of the list.\n\n**Modifiers**\n\n- `asc(\"ATTRIBUTE\")`.\n Sort the index by the values of an attribute, in ascending order.\n- `desc(\"ATTRIBUTE\")`.\n Sort the index by the values of an attribute, in descending order.\n\nBefore you modify the default setting,\nyou should test your changes in the dashboard,\nand by [A/B testing](https://www.algolia.com/doc/guides/ab-testing/what-is-ab-testing/).\n",
|
|
1646
|
-
"default": [
|
|
1647
|
-
"typo",
|
|
1648
|
-
"geo",
|
|
1649
|
-
"words",
|
|
1650
|
-
"filters",
|
|
1651
|
-
"proximity",
|
|
1652
|
-
"attribute",
|
|
1653
|
-
"exact",
|
|
1654
|
-
"custom"
|
|
1655
|
-
],
|
|
1656
|
-
"x-categories": [
|
|
1657
|
-
"Ranking"
|
|
1658
|
-
]
|
|
1659
|
-
},
|
|
1660
|
-
"relevancyStrictness": {
|
|
1661
|
-
"type": "integer",
|
|
1662
|
-
"example": 90,
|
|
1663
|
-
"description": "Relevancy threshold below which less relevant results aren't included in the results\nYou can only set `relevancyStrictness` on [virtual replica indices](https://www.algolia.com/doc/guides/managing-results/refine-results/sorting/in-depth/replicas/#what-are-virtual-replicas).\nUse this setting to strike a balance between the relevance and number of returned results.\n",
|
|
1664
|
-
"default": 100,
|
|
1665
|
-
"x-categories": [
|
|
1666
|
-
"Ranking"
|
|
1667
|
-
]
|
|
1668
|
-
},
|
|
1669
|
-
"attributesToHighlight": {
|
|
1670
|
-
"type": "array",
|
|
1671
|
-
"items": {
|
|
1672
|
-
"type": "string"
|
|
1673
|
-
},
|
|
1674
|
-
"example": [
|
|
1675
|
-
"author",
|
|
1676
|
-
"title",
|
|
1677
|
-
"conten",
|
|
1678
|
-
"content"
|
|
1679
|
-
],
|
|
1680
|
-
"description": "Attributes to highlight\nBy default, all searchable attributes are highlighted.\nUse `*` to highlight all attributes or use an empty array `[]` to turn off highlighting.\nAttribute names are case-sensitive\nWith highlighting, strings that match the search query are surrounded by HTML tags defined by `highlightPreTag` and `highlightPostTag`.\nYou can use this to visually highlight matching parts of a search query in your UI\nFor more information, see [Highlighting and snippeting](https://www.algolia.com/doc/guides/building-search-ui/ui-and-ux-patterns/highlighting-snippeting/js/).\n",
|
|
1681
|
-
"x-categories": [
|
|
1682
|
-
"Highlighting and Snippeting"
|
|
1683
|
-
]
|
|
1684
|
-
},
|
|
1685
|
-
"attributesToSnippet": {
|
|
1686
|
-
"type": "array",
|
|
1687
|
-
"items": {
|
|
1688
|
-
"type": "string"
|
|
1689
|
-
},
|
|
1690
|
-
"example": [
|
|
1691
|
-
"content:80",
|
|
1692
|
-
"description"
|
|
1693
|
-
],
|
|
1694
|
-
"description": "Attributes for which to enable snippets.\nAttribute names are case-sensitive\nSnippets provide additional context to matched words.\nIf you enable snippets, they include 10 words, including the matched word.\nThe matched word will also be wrapped by HTML tags for highlighting.\nYou can adjust the number of words with the following notation: `ATTRIBUTE:NUMBER`,\nwhere `NUMBER` is the number of words to be extracted.\n",
|
|
1695
|
-
"default": [],
|
|
1696
|
-
"x-categories": [
|
|
1697
|
-
"Highlighting and Snippeting"
|
|
1698
|
-
]
|
|
1699
|
-
},
|
|
1700
|
-
"highlightPreTag": {
|
|
1701
|
-
"type": "string",
|
|
1702
|
-
"description": "HTML tag to insert before the highlighted parts in all highlighted results and snippets.",
|
|
1703
|
-
"default": "<em>",
|
|
1704
|
-
"x-categories": [
|
|
1705
|
-
"Highlighting and Snippeting"
|
|
1706
|
-
]
|
|
1707
|
-
},
|
|
1708
|
-
"highlightPostTag": {
|
|
1709
|
-
"type": "string",
|
|
1710
|
-
"description": "HTML tag to insert after the highlighted parts in all highlighted results and snippets.",
|
|
1711
|
-
"default": "</em>",
|
|
1712
|
-
"x-categories": [
|
|
1713
|
-
"Highlighting and Snippeting"
|
|
1714
|
-
]
|
|
1715
|
-
},
|
|
1716
|
-
"snippetEllipsisText": {
|
|
1717
|
-
"type": "string",
|
|
1718
|
-
"description": "String used as an ellipsis indicator when a snippet is truncated.",
|
|
1719
|
-
"default": "…",
|
|
1720
|
-
"x-categories": [
|
|
1721
|
-
"Highlighting and Snippeting"
|
|
1722
|
-
]
|
|
1723
|
-
},
|
|
1724
|
-
"restrictHighlightAndSnippetArrays": {
|
|
1725
|
-
"type": "boolean",
|
|
1726
|
-
"description": "Whether to restrict highlighting and snippeting to items that at least partially matched the search query.\nBy default, all items are highlighted and snippeted.\n",
|
|
1727
|
-
"default": false,
|
|
1728
|
-
"x-categories": [
|
|
1729
|
-
"Highlighting and Snippeting"
|
|
1730
|
-
]
|
|
1731
|
-
},
|
|
1732
|
-
"minWordSizefor1Typo": {
|
|
1733
|
-
"type": "integer",
|
|
1734
|
-
"description": "Minimum number of characters a word in the search query must contain to accept matches with [one typo](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/typo-tolerance/in-depth/configuring-typo-tolerance/#configuring-word-length-for-typos).",
|
|
1735
|
-
"default": 4,
|
|
1736
|
-
"x-categories": [
|
|
1737
|
-
"Typos"
|
|
1738
|
-
]
|
|
1739
|
-
},
|
|
1740
|
-
"minWordSizefor2Typos": {
|
|
1741
|
-
"type": "integer",
|
|
1742
|
-
"description": "Minimum number of characters a word in the search query must contain to accept matches with [two typos](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/typo-tolerance/in-depth/configuring-typo-tolerance/#configuring-word-length-for-typos).",
|
|
1743
|
-
"default": 8,
|
|
1744
|
-
"x-categories": [
|
|
1745
|
-
"Typos"
|
|
1746
|
-
]
|
|
1747
|
-
},
|
|
1748
|
-
"typoToleranceEnum": {
|
|
1749
|
-
"type": "string",
|
|
1750
|
-
"title": "typo tolerance",
|
|
1751
|
-
"description": "- `min`. Return matches with the lowest number of typos.\n For example, if you have matches without typos, only include those.\n But if there are no matches without typos (with 1 typo), include matches with 1 typo (2 typos).\n- `strict`. Return matches with the two lowest numbers of typos.\n With `strict`, the Typo ranking criterion is applied first in the `ranking` setting.\n",
|
|
1752
|
-
"enum": [
|
|
1753
|
-
"min",
|
|
1754
|
-
"strict",
|
|
1755
|
-
"true",
|
|
1756
|
-
"false"
|
|
1757
|
-
]
|
|
1758
|
-
},
|
|
1759
|
-
"typoTolerance": {
|
|
1760
|
-
"description": "Whether [typo tolerance](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/typo-tolerance/) is enabled and how it is applied.\n\nIf typo tolerance is true, `min`, or `strict`, [word splitting and concatenation](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/splitting-and-concatenation/) are also active.\n",
|
|
1761
|
-
"oneOf": [
|
|
1762
|
-
{
|
|
1763
|
-
"type": "boolean",
|
|
1764
|
-
"default": true,
|
|
1765
|
-
"description": "Whether typo tolerance is active. If true, matches with typos are included in the search results and rank after exact matches."
|
|
1766
|
-
},
|
|
1767
|
-
{
|
|
1768
|
-
"$ref": "#/components/schemas/typoToleranceEnum"
|
|
1769
|
-
}
|
|
1770
|
-
],
|
|
1771
|
-
"x-categories": [
|
|
1772
|
-
"Typos"
|
|
1773
|
-
]
|
|
1774
|
-
},
|
|
1775
|
-
"allowTyposOnNumericTokens": {
|
|
1776
|
-
"type": "boolean",
|
|
1777
|
-
"description": "Whether to allow typos on numbers in the search query\nTurn off this setting to reduce the number of irrelevant matches\nwhen searching in large sets of similar numbers.\n",
|
|
1778
|
-
"default": true,
|
|
1779
|
-
"x-categories": [
|
|
1780
|
-
"Typos"
|
|
1781
|
-
]
|
|
1782
|
-
},
|
|
1783
|
-
"disableTypoToleranceOnAttributes": {
|
|
1784
|
-
"type": "array",
|
|
1785
|
-
"items": {
|
|
1786
|
-
"type": "string"
|
|
1787
|
-
},
|
|
1788
|
-
"example": [
|
|
1789
|
-
"sku"
|
|
1790
|
-
],
|
|
1791
|
-
"description": "Attributes for which you want to turn off [typo tolerance](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/typo-tolerance/).\nAttribute names are case-sensitive\nReturning only exact matches can help when\n- [Searching in hyphenated attributes](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/typo-tolerance/how-to/how-to-search-in-hyphenated-attributes/).\n- Reducing the number of matches when you have too many.\n This can happen with attributes that are long blocks of text, such as product descriptions\nConsider alternatives such as `disableTypoToleranceOnWords` or adding synonyms if your attributes have intentional unusual spellings that might look like typos.\n",
|
|
1792
|
-
"default": [],
|
|
1793
|
-
"x-categories": [
|
|
1794
|
-
"Typos"
|
|
1795
|
-
]
|
|
1796
|
-
},
|
|
1797
|
-
"booleanString": {
|
|
1798
|
-
"type": "string",
|
|
1799
|
-
"enum": [
|
|
1800
|
-
"true",
|
|
1801
|
-
"false"
|
|
1802
|
-
]
|
|
1803
|
-
},
|
|
1804
|
-
"ignorePlurals": {
|
|
1805
|
-
"description": "Treat singular, plurals, and other forms of declensions as equivalent.\nYou should only use this feature for the languages used in your index.\n",
|
|
1806
|
-
"example": [
|
|
1807
|
-
"ca",
|
|
1808
|
-
"es"
|
|
1809
|
-
],
|
|
1810
|
-
"oneOf": [
|
|
1811
|
-
{
|
|
1812
|
-
"type": "array",
|
|
1813
|
-
"description": "ISO code for languages for which this feature should be active.\nThis overrides languages you set with `queryLanguages`.\n",
|
|
1814
|
-
"items": {
|
|
1815
|
-
"$ref": "#/components/schemas/supportedLanguage"
|
|
1816
|
-
}
|
|
1817
|
-
},
|
|
1818
|
-
{
|
|
1819
|
-
"$ref": "#/components/schemas/booleanString"
|
|
1820
|
-
},
|
|
1821
|
-
{
|
|
1822
|
-
"type": "boolean",
|
|
1823
|
-
"description": "If true, `ignorePlurals` is active for all languages included in `queryLanguages`, or for all supported languages, if `queryLanguges` is empty.\nIf false, singulars, plurals, and other declensions won't be considered equivalent.\n",
|
|
1824
|
-
"default": false
|
|
1825
|
-
}
|
|
1826
|
-
],
|
|
1827
|
-
"x-categories": [
|
|
1828
|
-
"Languages"
|
|
1829
|
-
]
|
|
1830
|
-
},
|
|
1831
|
-
"removeStopWords": {
|
|
1832
|
-
"description": "Removes stop words from the search query.\n\nStop words are common words like articles, conjunctions, prepositions, or pronouns that have little or no meaning on their own.\nIn English, \"the\", \"a\", or \"and\" are stop words.\n\nYou should only use this feature for the languages used in your index.\n",
|
|
1833
|
-
"example": [
|
|
1834
|
-
"ca",
|
|
1835
|
-
"es"
|
|
1836
|
-
],
|
|
1837
|
-
"oneOf": [
|
|
1838
|
-
{
|
|
1839
|
-
"type": "array",
|
|
1840
|
-
"description": "ISO code for languages for which stop words should be removed. This overrides languages you set in `queryLanguges`.",
|
|
1841
|
-
"items": {
|
|
1842
|
-
"$ref": "#/components/schemas/supportedLanguage"
|
|
1843
|
-
}
|
|
1844
|
-
},
|
|
1845
|
-
{
|
|
1846
|
-
"type": "boolean",
|
|
1847
|
-
"default": false,
|
|
1848
|
-
"description": "If true, stop words are removed for all languages you included in `queryLanguages`, or for all supported languages, if `queryLanguages` is empty.\nIf false, stop words are not removed.\n"
|
|
1849
|
-
}
|
|
1850
|
-
],
|
|
1851
|
-
"x-categories": [
|
|
1852
|
-
"Languages"
|
|
1853
|
-
]
|
|
1854
|
-
},
|
|
1855
|
-
"queryLanguages": {
|
|
1856
|
-
"type": "array",
|
|
1857
|
-
"items": {
|
|
1858
|
-
"$ref": "#/components/schemas/supportedLanguage"
|
|
1859
|
-
},
|
|
1860
|
-
"example": [
|
|
1861
|
-
"es"
|
|
1862
|
-
],
|
|
1863
|
-
"description": "Languages for language-specific query processing steps such as plurals, stop-word removal, and word-detection dictionaries \nThis setting sets a default list of languages used by the `removeStopWords` and `ignorePlurals` settings.\nThis setting also sets a dictionary for word detection in the logogram-based [CJK](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/normalization/#normalization-for-logogram-based-languages-cjk) languages.\nTo support this, you must place the CJK language **first** \n**You should always specify a query language.**\nIf you don't specify an indexing language, the search engine uses all [supported languages](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/supported-languages/),\nor the languages you specified with the `ignorePlurals` or `removeStopWords` parameters.\nThis can lead to unexpected search results.\nFor more information, see [Language-specific configuration](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/language-specific-configurations/).\n",
|
|
1864
|
-
"default": [],
|
|
1865
|
-
"x-categories": [
|
|
1866
|
-
"Languages"
|
|
1867
|
-
]
|
|
1868
|
-
},
|
|
1869
|
-
"decompoundQuery": {
|
|
1870
|
-
"type": "boolean",
|
|
1871
|
-
"description": "Whether to split compound words in the query into their building blocks\nFor more information, see [Word segmentation](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/language-specific-configurations/#splitting-compound-words).\nWord segmentation is supported for these languages: German, Dutch, Finnish, Swedish, and Norwegian.\nDecompounding doesn't work for words with [non-spacing mark Unicode characters](https://www.charactercodes.net/category/non-spacing_mark).\nFor example, `Gartenstühle` won't be decompounded if the `ü` consists of `u` (U+0075) and `◌̈` (U+0308).\n",
|
|
1872
|
-
"default": true,
|
|
1873
|
-
"x-categories": [
|
|
1874
|
-
"Languages"
|
|
1875
|
-
]
|
|
1876
|
-
},
|
|
1877
|
-
"enableRules": {
|
|
1878
|
-
"type": "boolean",
|
|
1879
|
-
"description": "Whether to enable rules.",
|
|
1880
|
-
"default": true,
|
|
1881
|
-
"x-categories": [
|
|
1882
|
-
"Rules"
|
|
1883
|
-
]
|
|
1884
|
-
},
|
|
1885
|
-
"enablePersonalization": {
|
|
1886
|
-
"type": "boolean",
|
|
1887
|
-
"description": "Whether to enable Personalization.",
|
|
1888
|
-
"default": false,
|
|
1889
|
-
"x-categories": [
|
|
1890
|
-
"Personalization"
|
|
1891
|
-
]
|
|
1892
|
-
},
|
|
1893
|
-
"queryType": {
|
|
1894
|
-
"type": "string",
|
|
1895
|
-
"enum": [
|
|
1896
|
-
"prefixLast",
|
|
1897
|
-
"prefixAll",
|
|
1898
|
-
"prefixNone"
|
|
1899
|
-
],
|
|
1900
|
-
"description": "Determines if and how query words are interpreted as prefixes.\n\nBy default, only the last query word is treated as a prefix (`prefixLast`).\nTo turn off prefix search, use `prefixNone`.\nAvoid `prefixAll`, which treats all query words as prefixes.\nThis might lead to counterintuitive results and makes your search slower.\n\nFor more information, see [Prefix searching](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/override-search-engine-defaults/in-depth/prefix-searching/).\n",
|
|
1901
|
-
"default": "prefixLast",
|
|
1902
|
-
"x-categories": [
|
|
1903
|
-
"Query strategy"
|
|
1904
|
-
]
|
|
1905
|
-
},
|
|
1906
|
-
"removeWordsIfNoResults": {
|
|
1907
|
-
"type": "string",
|
|
1908
|
-
"enum": [
|
|
1909
|
-
"none",
|
|
1910
|
-
"lastWords",
|
|
1911
|
-
"firstWords",
|
|
1912
|
-
"allOptional"
|
|
1913
|
-
],
|
|
1914
|
-
"example": "firstWords",
|
|
1915
|
-
"description": "Strategy for removing words from the query when it doesn't return any results.\nThis helps to avoid returning empty search results.\n\n- `none`.\n No words are removed when a query doesn't return results.\n\n- `lastWords`.\n Treat the last (then second to last, then third to last) word as optional,\n until there are results or at most 5 words have been removed.\n\n- `firstWords`.\n Treat the first (then second, then third) word as optional,\n until there are results or at most 5 words have been removed.\n\n- `allOptional`.\n Treat all words as optional.\n\nFor more information, see [Remove words to improve results](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/empty-or-insufficient-results/in-depth/why-use-remove-words-if-no-results/).\n",
|
|
1916
|
-
"default": "none",
|
|
1917
|
-
"x-categories": [
|
|
1918
|
-
"Query strategy"
|
|
1919
|
-
]
|
|
1920
|
-
},
|
|
1921
|
-
"advancedSyntax": {
|
|
1922
|
-
"type": "boolean",
|
|
1923
|
-
"description": "Whether to support phrase matching and excluding words from search queries\nUse the `advancedSyntaxFeatures` parameter to control which feature is supported.\n",
|
|
1924
|
-
"default": false,
|
|
1925
|
-
"x-categories": [
|
|
1926
|
-
"Query strategy"
|
|
1927
|
-
]
|
|
1928
|
-
},
|
|
1929
|
-
"optionalWordsArray": {
|
|
1930
|
-
"type": "array",
|
|
1931
|
-
"items": {
|
|
1932
|
-
"type": "string"
|
|
1933
|
-
},
|
|
1934
|
-
"example": [
|
|
1935
|
-
"blue",
|
|
1936
|
-
"iphone case"
|
|
1937
|
-
],
|
|
1938
|
-
"description": "List of [optional words](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/empty-or-insufficient-results/#creating-a-list-of-optional-words).",
|
|
1939
|
-
"default": [],
|
|
1940
|
-
"x-categories": [
|
|
1941
|
-
"Query strategy"
|
|
1942
|
-
]
|
|
1943
|
-
},
|
|
1944
|
-
"optionalWords": {
|
|
1945
|
-
"description": "Words that should be considered optional when found in the query.\n\nBy default, records must match all words in the search query to be included in the search results.\nAdding optional words can help to increase the number of search results by running an additional search query that doesn't include the optional words.\nFor example, if the search query is \"action video\" and \"video\" is an optional word,\nthe search engine runs two queries. One for \"action video\" and one for \"action\".\nRecords that match all words are ranked higher.\n\nFor a search query with 4 or more words **and** all its words are optional,\nthe number of matched words required for a record to be included in the search results increases for every 1,000 records:\n\n- If `optionalWords` has less than 10 words, the required number of matched words increases by 1:\n results 1 to 1,000 require 1 matched word, results 1,001 to 2000 need 2 matched words.\n- If `optionalWords` has 10 or more words, the number of required matched words increases by the number of optional words divided by 5 (rounded down).\n For example, with 18 optional words: results 1 to 1,000 require 1 matched word, results 1,001 to 2000 need 4 matched words.\n\nFor more information, see [Optional words](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/empty-or-insufficient-results/#creating-a-list-of-optional-words).\n",
|
|
1946
|
-
"oneOf": [
|
|
1947
|
-
{
|
|
1948
|
-
"type": "string"
|
|
1949
|
-
},
|
|
1950
|
-
{
|
|
1951
|
-
"type": "null"
|
|
1952
|
-
},
|
|
1953
|
-
{
|
|
1954
|
-
"$ref": "#/components/schemas/optionalWordsArray"
|
|
1955
|
-
}
|
|
1956
|
-
]
|
|
1957
|
-
},
|
|
1958
|
-
"disableExactOnAttributes": {
|
|
1959
|
-
"type": "array",
|
|
1960
|
-
"items": {
|
|
1961
|
-
"type": "string"
|
|
1962
|
-
},
|
|
1963
|
-
"example": [
|
|
1964
|
-
"description"
|
|
1965
|
-
],
|
|
1966
|
-
"description": "Searchable attributes for which you want to [turn off the Exact ranking criterion](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/override-search-engine-defaults/in-depth/adjust-exact-settings/#turn-off-exact-for-some-attributes).\nAttribute names are case-sensitive\nThis can be useful for attributes with long values, where the likelihood of an exact match is high,\nsuch as product descriptions.\nTurning off the Exact ranking criterion for these attributes favors exact matching on other attributes.\nThis reduces the impact of individual attributes with a lot of content on ranking.\n",
|
|
1967
|
-
"default": [],
|
|
1968
|
-
"x-categories": [
|
|
1969
|
-
"Query strategy"
|
|
1970
|
-
]
|
|
1971
|
-
},
|
|
1972
|
-
"exactOnSingleWordQuery": {
|
|
1973
|
-
"type": "string",
|
|
1974
|
-
"enum": [
|
|
1975
|
-
"attribute",
|
|
1976
|
-
"none",
|
|
1977
|
-
"word"
|
|
1978
|
-
],
|
|
1979
|
-
"description": "Determines how the [Exact ranking criterion](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/override-search-engine-defaults/in-depth/adjust-exact-settings/#turn-off-exact-for-some-attributes) is computed when the search query has only one word.\n\n- `attribute`.\n The Exact ranking criterion is 1 if the query word and attribute value are the same.\n For example, a search for \"road\" will match the value \"road\", but not \"road trip\".\n\n- `none`.\n The Exact ranking criterion is ignored on single-word searches.\n\n- `word`.\n The Exact ranking criterion is 1 if the query word is found in the attribute value.\n The query word must have at least 3 characters and must not be a stop word.\n Only exact matches will be highlighted,\n partial and prefix matches won't.\n",
|
|
1980
|
-
"default": "attribute",
|
|
1981
|
-
"x-categories": [
|
|
1982
|
-
"Query strategy"
|
|
1983
|
-
]
|
|
1984
|
-
},
|
|
1985
|
-
"alternativesAsExact": {
|
|
1986
|
-
"type": "string",
|
|
1987
|
-
"enum": [
|
|
1988
|
-
"ignorePlurals",
|
|
1989
|
-
"singleWordSynonym",
|
|
1990
|
-
"multiWordsSynonym",
|
|
1991
|
-
"ignoreConjugations"
|
|
1992
|
-
],
|
|
1993
|
-
"x-categories": [
|
|
1994
|
-
"Query strategy"
|
|
1995
|
-
]
|
|
1996
|
-
},
|
|
1997
|
-
"IndexSettings_alternativesAsExact": {
|
|
1998
|
-
"type": "array",
|
|
1999
|
-
"items": {
|
|
2000
|
-
"$ref": "#/components/schemas/alternativesAsExact"
|
|
2001
|
-
},
|
|
2002
|
-
"description": "Determine which plurals and synonyms should be considered an exact matches\nBy default, Algolia treats singular and plural forms of a word, and single-word synonyms, as [exact](https://www.algolia.com/doc/guides/managing-results/relevance-overview/in-depth/ranking-criteria/#exact) matches when searching.\nFor example\n- \"swimsuit\" and \"swimsuits\" are treated the same\n- \"swimsuit\" and \"swimwear\" are treated the same (if they are [synonyms](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/adding-synonyms/#regular-synonyms))\n- `ignorePlurals`.\n Plurals and similar declensions added by the `ignorePlurals` setting are considered exact matches\n- `singleWordSynonym`.\n Single-word synonyms, such as \"NY\" = \"NYC\", are considered exact matches\n- `multiWordsSynonym`.\n Multi-word synonyms, such as \"NY\" = \"New York\", are considered exact matches.\n",
|
|
2003
|
-
"default": [
|
|
2004
|
-
"ignorePlurals",
|
|
2005
|
-
"singleWordSynonym"
|
|
2006
|
-
],
|
|
2007
|
-
"x-categories": [
|
|
2008
|
-
"Query strategy"
|
|
2009
|
-
]
|
|
2010
|
-
},
|
|
2011
|
-
"advancedSyntaxFeatures": {
|
|
2012
|
-
"type": "string",
|
|
2013
|
-
"enum": [
|
|
2014
|
-
"exactPhrase",
|
|
2015
|
-
"excludeWords"
|
|
2016
|
-
],
|
|
2017
|
-
"x-categories": [
|
|
2018
|
-
"Query strategy"
|
|
2019
|
-
]
|
|
2020
|
-
},
|
|
2021
|
-
"IndexSettings_advancedSyntaxFeatures": {
|
|
2022
|
-
"type": "array",
|
|
2023
|
-
"items": {
|
|
2024
|
-
"$ref": "#/components/schemas/advancedSyntaxFeatures"
|
|
2025
|
-
},
|
|
2026
|
-
"description": "Advanced search syntax features you want to support\n- `exactPhrase`.\n Phrases in quotes must match exactly.\n For example, `sparkly blue \"iPhone case\"` only returns records with the exact string \"iPhone case\"\n- `excludeWords`.\n Query words prefixed with a `-` must not occur in a record.\n For example, `search -engine` matches records that contain \"search\" but not \"engine\"\nThis setting only has an effect if `advancedSyntax` is true.\n",
|
|
2027
|
-
"default": [
|
|
2028
|
-
"exactPhrase",
|
|
2029
|
-
"excludeWords"
|
|
2030
|
-
],
|
|
2031
|
-
"x-categories": [
|
|
2032
|
-
"Query strategy"
|
|
2033
|
-
]
|
|
2034
|
-
},
|
|
2035
|
-
"distinct": {
|
|
2036
|
-
"description": "Determines how many records of a group are included in the search results.\n\nRecords with the same value for the `attributeForDistinct` attribute are considered a group.\nThe `distinct` setting controls how many members of the group are returned.\nThis is useful for [deduplication and grouping](https://www.algolia.com/doc/guides/managing-results/refine-results/grouping/#introducing-algolias-distinct-feature).\n\nThe `distinct` setting is ignored if `attributeForDistinct` is not set.\n",
|
|
2037
|
-
"example": 1,
|
|
2038
|
-
"oneOf": [
|
|
2039
|
-
{
|
|
2040
|
-
"type": "boolean",
|
|
2041
|
-
"description": "Whether deduplication is turned on. If true, only one member of a group is shown in the search results."
|
|
2042
|
-
},
|
|
2043
|
-
{
|
|
2044
|
-
"type": "integer",
|
|
2045
|
-
"description": "Number of members of a group of records to include in the search results.\n\n- Don't use `distinct > 1` for records that might be [promoted by rules](https://www.algolia.com/doc/guides/managing-results/rules/merchandising-and-promoting/how-to/promote-hits/).\n The number of hits won't be correct and faceting won't work as expected.\n- With `distinct > 1`, the `hitsPerPage` parameter controls the number of returned groups.\n For example, with `hitsPerPage: 10` and `distinct: 2`, up to 20 records are returned.\n Likewise, the `nbHits` response attribute contains the number of returned groups.\n",
|
|
2046
|
-
"minimum": 0,
|
|
2047
|
-
"maximum": 4,
|
|
2048
|
-
"default": 0
|
|
2049
|
-
}
|
|
2050
|
-
],
|
|
2051
|
-
"x-categories": [
|
|
2052
|
-
"Advanced"
|
|
2053
|
-
]
|
|
2054
|
-
},
|
|
2055
|
-
"replaceSynonymsInHighlight": {
|
|
2056
|
-
"type": "boolean",
|
|
2057
|
-
"description": "Whether to replace a highlighted word with the matched synonym\nBy default, the original words are highlighted even if a synonym matches.\nFor example, with `home` as a synonym for `house` and a search for `home`,\nrecords matching either \"home\" or \"house\" are included in the search results,\nand either \"home\" or \"house\" are highlighted\nWith `replaceSynonymsInHighlight` set to `true`, a search for `home` still matches the same records,\nbut all occurrences of \"house\" are replaced by \"home\" in the highlighted response.\n",
|
|
2058
|
-
"default": false,
|
|
2059
|
-
"x-categories": [
|
|
2060
|
-
"Highlighting and Snippeting"
|
|
2061
|
-
]
|
|
2062
|
-
},
|
|
2063
|
-
"minProximity": {
|
|
2064
|
-
"type": "integer",
|
|
2065
|
-
"minimum": 1,
|
|
2066
|
-
"maximum": 7,
|
|
2067
|
-
"description": "Minimum proximity score for two matching words\nThis adjusts the [Proximity ranking criterion](https://www.algolia.com/doc/guides/managing-results/relevance-overview/in-depth/ranking-criteria/#proximity)\nby equally scoring matches that are farther apart\nFor example, if `minProximity` is 2, neighboring matches and matches with one word between them would have the same score.\n",
|
|
2068
|
-
"default": 1,
|
|
2069
|
-
"x-categories": [
|
|
2070
|
-
"Advanced"
|
|
2071
|
-
]
|
|
2072
|
-
},
|
|
2073
|
-
"responseFields": {
|
|
2074
|
-
"type": "array",
|
|
2075
|
-
"items": {
|
|
2076
|
-
"type": "string"
|
|
2077
|
-
},
|
|
2078
|
-
"description": "Properties to include in the API response of search and browse requests\nBy default, all response properties are included.\nTo reduce the response size, you can select which properties should be included\nAn empty list may lead to an empty API response (except properties you can't exclude)\nYou can't exclude these properties:\n`message`, `warning`, `cursor`, `abTestVariantID`,\nor any property added by setting `getRankingInfo` to true\nYour search depends on the `hits` field. If you omit this field, searches won't return any results.\nYour UI might also depend on other properties, for example, for pagination.\nBefore restricting the response size, check the impact on your search experience.\n",
|
|
2079
|
-
"default": [
|
|
2080
|
-
"*"
|
|
2081
|
-
],
|
|
2082
|
-
"x-categories": [
|
|
2083
|
-
"Advanced"
|
|
2084
|
-
]
|
|
2085
|
-
},
|
|
2086
|
-
"maxValuesPerFacet": {
|
|
2087
|
-
"type": "integer",
|
|
2088
|
-
"description": "Maximum number of facet values to return for each facet.",
|
|
2089
|
-
"default": 100,
|
|
2090
|
-
"maximum": 1000,
|
|
2091
|
-
"x-categories": [
|
|
2092
|
-
"Faceting"
|
|
2093
|
-
]
|
|
2094
|
-
},
|
|
2095
|
-
"sortFacetValuesBy": {
|
|
2096
|
-
"type": "string",
|
|
2097
|
-
"description": "Order in which to retrieve facet values\n- `count`.\n Facet values are retrieved by decreasing count.\n The count is the number of matching records containing this facet value\n- `alpha`.\n Retrieve facet values alphabetically\nThis setting doesn't influence how facet values are displayed in your UI (see `renderingContent`).\nFor more information, see [facet value display](https://www.algolia.com/doc/guides/building-search-ui/ui-and-ux-patterns/facet-display/js/).\n",
|
|
2098
|
-
"default": "count",
|
|
2099
|
-
"x-categories": [
|
|
2100
|
-
"Faceting"
|
|
2101
|
-
]
|
|
2102
|
-
},
|
|
2103
|
-
"attributeCriteriaComputedByMinProximity": {
|
|
2104
|
-
"type": "boolean",
|
|
2105
|
-
"description": "Whether the best matching attribute should be determined by minimum proximity\nThis setting only affects ranking if the Attribute ranking criterion comes before Proximity in the `ranking` setting.\nIf true, the best matching attribute is selected based on the minimum proximity of multiple matches.\nOtherwise, the best matching attribute is determined by the order in the `searchableAttributes` setting.\n",
|
|
2106
|
-
"default": false,
|
|
2107
|
-
"x-categories": [
|
|
2108
|
-
"Advanced"
|
|
2109
|
-
]
|
|
2110
|
-
},
|
|
2111
|
-
"order": {
|
|
2112
|
-
"description": "Explicit order of facets or facet values.\n\nThis setting lets you always show specific facets or facet values at the top of the list.\n",
|
|
2113
|
-
"type": "array",
|
|
2114
|
-
"items": {
|
|
2115
|
-
"type": "string"
|
|
2116
|
-
}
|
|
2117
|
-
},
|
|
2118
|
-
"IndexSettings_facets": {
|
|
2119
|
-
"description": "Order of facet names.",
|
|
2120
|
-
"type": "object",
|
|
2121
|
-
"additionalProperties": false,
|
|
2122
|
-
"properties": {
|
|
2123
|
-
"order": {
|
|
2124
|
-
"$ref": "#/components/schemas/order"
|
|
2125
|
-
}
|
|
2126
|
-
}
|
|
2127
|
-
},
|
|
2128
|
-
"sortRemainingBy": {
|
|
2129
|
-
"description": "Order of facet values that aren't explicitly positioned with the `order` setting.\n\n- `count`.\n Order remaining facet values by decreasing count.\n The count is the number of matching records containing this facet value.\n\n- `alpha`.\n Sort facet values alphabetically.\n\n- `hidden`.\n Don't show facet values that aren't explicitly positioned.\n",
|
|
2130
|
-
"type": "string",
|
|
2131
|
-
"enum": [
|
|
2132
|
-
"count",
|
|
2133
|
-
"alpha",
|
|
2134
|
-
"hidden"
|
|
2135
|
-
]
|
|
2136
|
-
},
|
|
2137
|
-
"hide": {
|
|
2138
|
-
"description": "Hide facet values.",
|
|
2139
|
-
"type": "array",
|
|
2140
|
-
"items": {
|
|
2141
|
-
"type": "string"
|
|
2142
|
-
}
|
|
2143
|
-
},
|
|
2144
|
-
"value": {
|
|
2145
|
-
"type": "object",
|
|
2146
|
-
"additionalProperties": false,
|
|
2147
|
-
"properties": {
|
|
2148
|
-
"order": {
|
|
2149
|
-
"$ref": "#/components/schemas/order"
|
|
2150
|
-
},
|
|
2151
|
-
"sortRemainingBy": {
|
|
2152
|
-
"$ref": "#/components/schemas/sortRemainingBy"
|
|
2153
|
-
},
|
|
2154
|
-
"hide": {
|
|
2155
|
-
"$ref": "#/components/schemas/hide"
|
|
2156
|
-
}
|
|
2157
|
-
}
|
|
2158
|
-
},
|
|
2159
|
-
"values": {
|
|
2160
|
-
"description": "Order of facet values. One object for each facet.",
|
|
2161
|
-
"type": "object",
|
|
2162
|
-
"additionalProperties": {
|
|
2163
|
-
"x-additionalPropertiesName": "facet",
|
|
2164
|
-
"$ref": "#/components/schemas/value"
|
|
2165
|
-
}
|
|
2166
|
-
},
|
|
2167
|
-
"facetOrdering": {
|
|
2168
|
-
"description": "Order of facet names and facet values in your UI.",
|
|
2169
|
-
"type": "object",
|
|
2170
|
-
"additionalProperties": false,
|
|
2171
|
-
"properties": {
|
|
2172
|
-
"facets": {
|
|
2173
|
-
"$ref": "#/components/schemas/IndexSettings_facets"
|
|
2174
|
-
},
|
|
2175
|
-
"values": {
|
|
2176
|
-
"$ref": "#/components/schemas/values"
|
|
2177
|
-
}
|
|
2178
|
-
}
|
|
2179
|
-
},
|
|
2180
|
-
"redirectURL": {
|
|
2181
|
-
"description": "The redirect rule container.",
|
|
2182
|
-
"type": "object",
|
|
2183
|
-
"additionalProperties": false,
|
|
2184
|
-
"properties": {
|
|
2185
|
-
"url": {
|
|
2186
|
-
"type": "string"
|
|
2187
|
-
}
|
|
2188
|
-
}
|
|
2189
|
-
},
|
|
2190
|
-
"bannerImageUrl": {
|
|
2191
|
-
"description": "URL for an image to show inside a banner.",
|
|
2192
|
-
"type": "object",
|
|
2193
|
-
"additionalProperties": false,
|
|
2194
|
-
"properties": {
|
|
2195
|
-
"url": {
|
|
2196
|
-
"type": "string"
|
|
2197
|
-
}
|
|
2198
|
-
}
|
|
2199
|
-
},
|
|
2200
|
-
"bannerImage": {
|
|
2201
|
-
"description": "Image to show inside a banner.",
|
|
2202
|
-
"type": "object",
|
|
2203
|
-
"additionalProperties": false,
|
|
2204
|
-
"properties": {
|
|
2205
|
-
"urls": {
|
|
2206
|
-
"type": "array",
|
|
2207
|
-
"items": {
|
|
2208
|
-
"$ref": "#/components/schemas/bannerImageUrl"
|
|
2209
|
-
}
|
|
2210
|
-
},
|
|
2211
|
-
"title": {
|
|
2212
|
-
"type": "string"
|
|
2213
|
-
}
|
|
2214
|
-
}
|
|
2215
|
-
},
|
|
2216
|
-
"bannerLink": {
|
|
2217
|
-
"description": "Link for a banner defined in the Merchandising Studio.",
|
|
2218
|
-
"type": "object",
|
|
2219
|
-
"additionalProperties": false,
|
|
2220
|
-
"properties": {
|
|
2221
|
-
"url": {
|
|
2222
|
-
"type": "string"
|
|
2223
|
-
}
|
|
2224
|
-
}
|
|
2225
|
-
},
|
|
2226
|
-
"banner": {
|
|
2227
|
-
"description": "Banner with image and link to redirect users.",
|
|
2228
|
-
"type": "object",
|
|
2229
|
-
"additionalProperties": false,
|
|
2230
|
-
"properties": {
|
|
2231
|
-
"image": {
|
|
2232
|
-
"$ref": "#/components/schemas/bannerImage"
|
|
2233
|
-
},
|
|
2234
|
-
"link": {
|
|
2235
|
-
"$ref": "#/components/schemas/bannerLink"
|
|
2236
|
-
}
|
|
2237
|
-
}
|
|
2238
|
-
},
|
|
2239
|
-
"banners": {
|
|
2240
|
-
"description": "Banners defined in the Merchandising Studio for a given search.",
|
|
2241
|
-
"type": "array",
|
|
2242
|
-
"items": {
|
|
2243
|
-
"$ref": "#/components/schemas/banner"
|
|
2244
|
-
}
|
|
2245
|
-
},
|
|
2246
|
-
"widgets": {
|
|
2247
|
-
"description": "Widgets returned from any rules that are applied to the current search.",
|
|
2248
|
-
"type": "object",
|
|
2249
|
-
"additionalProperties": false,
|
|
2250
|
-
"properties": {
|
|
2251
|
-
"banners": {
|
|
2252
|
-
"$ref": "#/components/schemas/banners"
|
|
2253
|
-
}
|
|
2254
|
-
}
|
|
2255
|
-
},
|
|
2256
|
-
"renderingContent": {
|
|
2257
|
-
"description": "Extra data that can be used in the search UI.\n\nYou can use this to control aspects of your search UI, such as the order of facet names and values\nwithout changing your frontend code.\n",
|
|
2258
|
-
"type": "object",
|
|
2259
|
-
"additionalProperties": false,
|
|
2260
|
-
"properties": {
|
|
2261
|
-
"facetOrdering": {
|
|
2262
|
-
"$ref": "#/components/schemas/facetOrdering"
|
|
2263
|
-
},
|
|
2264
|
-
"redirect": {
|
|
2265
|
-
"$ref": "#/components/schemas/redirectURL"
|
|
2266
|
-
},
|
|
2267
|
-
"widgets": {
|
|
2268
|
-
"$ref": "#/components/schemas/widgets"
|
|
2269
|
-
}
|
|
2270
|
-
},
|
|
2271
|
-
"x-categories": [
|
|
2272
|
-
"Advanced"
|
|
2273
|
-
]
|
|
2274
|
-
},
|
|
2275
|
-
"enableReRanking": {
|
|
2276
|
-
"type": "boolean",
|
|
2277
|
-
"description": "Whether this search will use [Dynamic Re-Ranking](https://www.algolia.com/doc/guides/algolia-ai/re-ranking/)\nThis setting only has an effect if you activated Dynamic Re-Ranking for this index in the Algolia dashboard.\n",
|
|
2278
|
-
"default": true,
|
|
2279
|
-
"x-categories": [
|
|
2280
|
-
"Filtering"
|
|
2281
|
-
]
|
|
2282
|
-
},
|
|
2283
|
-
"reRankingApplyFilter": {
|
|
2284
|
-
"description": "Restrict [Dynamic Re-Ranking](https://www.algolia.com/doc/guides/algolia-ai/re-ranking/) to records that match these filters.\n",
|
|
2285
|
-
"oneOf": [
|
|
2286
|
-
{
|
|
2287
|
-
"type": "array",
|
|
2288
|
-
"items": {
|
|
2289
|
-
"$ref": "#/components/schemas/reRankingApplyFilter"
|
|
2290
|
-
}
|
|
2291
|
-
},
|
|
2292
|
-
{
|
|
2293
|
-
"type": "string",
|
|
2294
|
-
"x-categories": [
|
|
2295
|
-
"Filtering"
|
|
2296
|
-
]
|
|
2297
|
-
}
|
|
2298
|
-
]
|
|
2299
|
-
},
|
|
2300
|
-
"properties-reRankingApplyFilter": {
|
|
2301
|
-
"oneOf": [
|
|
2302
|
-
{
|
|
2303
|
-
"$ref": "#/components/schemas/reRankingApplyFilter"
|
|
2304
|
-
},
|
|
2305
|
-
{
|
|
2306
|
-
"type": "null"
|
|
2307
|
-
}
|
|
2308
|
-
]
|
|
2309
|
-
},
|
|
2310
|
-
"baseRecommendIndexSettings": {
|
|
2311
|
-
"type": "object",
|
|
2312
|
-
"additionalProperties": false,
|
|
2313
|
-
"properties": {
|
|
2314
|
-
"attributesToRetrieve": {
|
|
2315
|
-
"$ref": "#/components/schemas/attributesToRetrieve"
|
|
2316
|
-
},
|
|
2317
|
-
"ranking": {
|
|
2318
|
-
"$ref": "#/components/schemas/ranking"
|
|
2319
|
-
},
|
|
2320
|
-
"relevancyStrictness": {
|
|
2321
|
-
"$ref": "#/components/schemas/relevancyStrictness"
|
|
2322
|
-
},
|
|
2323
|
-
"attributesToHighlight": {
|
|
2324
|
-
"$ref": "#/components/schemas/attributesToHighlight"
|
|
2325
|
-
},
|
|
2326
|
-
"attributesToSnippet": {
|
|
2327
|
-
"$ref": "#/components/schemas/attributesToSnippet"
|
|
2328
|
-
},
|
|
2329
|
-
"highlightPreTag": {
|
|
2330
|
-
"$ref": "#/components/schemas/highlightPreTag"
|
|
2331
|
-
},
|
|
2332
|
-
"highlightPostTag": {
|
|
2333
|
-
"$ref": "#/components/schemas/highlightPostTag"
|
|
2334
|
-
},
|
|
2335
|
-
"snippetEllipsisText": {
|
|
2336
|
-
"$ref": "#/components/schemas/snippetEllipsisText"
|
|
2337
|
-
},
|
|
2338
|
-
"restrictHighlightAndSnippetArrays": {
|
|
2339
|
-
"$ref": "#/components/schemas/restrictHighlightAndSnippetArrays"
|
|
2340
|
-
},
|
|
2341
|
-
"minWordSizefor1Typo": {
|
|
2342
|
-
"$ref": "#/components/schemas/minWordSizefor1Typo"
|
|
2343
|
-
},
|
|
2344
|
-
"minWordSizefor2Typos": {
|
|
2345
|
-
"$ref": "#/components/schemas/minWordSizefor2Typos"
|
|
2346
|
-
},
|
|
2347
|
-
"typoTolerance": {
|
|
2348
|
-
"$ref": "#/components/schemas/typoTolerance"
|
|
2349
|
-
},
|
|
2350
|
-
"allowTyposOnNumericTokens": {
|
|
2351
|
-
"$ref": "#/components/schemas/allowTyposOnNumericTokens"
|
|
2352
|
-
},
|
|
2353
|
-
"disableTypoToleranceOnAttributes": {
|
|
2354
|
-
"$ref": "#/components/schemas/disableTypoToleranceOnAttributes"
|
|
2355
|
-
},
|
|
2356
|
-
"ignorePlurals": {
|
|
2357
|
-
"$ref": "#/components/schemas/ignorePlurals"
|
|
2358
|
-
},
|
|
2359
|
-
"removeStopWords": {
|
|
2360
|
-
"$ref": "#/components/schemas/removeStopWords"
|
|
2361
|
-
},
|
|
2362
|
-
"queryLanguages": {
|
|
2363
|
-
"$ref": "#/components/schemas/queryLanguages"
|
|
2364
|
-
},
|
|
2365
|
-
"decompoundQuery": {
|
|
2366
|
-
"$ref": "#/components/schemas/decompoundQuery"
|
|
2367
|
-
},
|
|
2368
|
-
"enableRules": {
|
|
2369
|
-
"$ref": "#/components/schemas/enableRules"
|
|
2370
|
-
},
|
|
2371
|
-
"enablePersonalization": {
|
|
2372
|
-
"$ref": "#/components/schemas/enablePersonalization"
|
|
2373
|
-
},
|
|
2374
|
-
"queryType": {
|
|
2375
|
-
"$ref": "#/components/schemas/queryType"
|
|
2376
|
-
},
|
|
2377
|
-
"removeWordsIfNoResults": {
|
|
2378
|
-
"$ref": "#/components/schemas/removeWordsIfNoResults"
|
|
2379
|
-
},
|
|
2380
|
-
"advancedSyntax": {
|
|
2381
|
-
"$ref": "#/components/schemas/advancedSyntax"
|
|
2382
|
-
},
|
|
2383
|
-
"optionalWords": {
|
|
2384
|
-
"$ref": "#/components/schemas/optionalWords"
|
|
2385
|
-
},
|
|
2386
|
-
"disableExactOnAttributes": {
|
|
2387
|
-
"$ref": "#/components/schemas/disableExactOnAttributes"
|
|
2388
|
-
},
|
|
2389
|
-
"exactOnSingleWordQuery": {
|
|
2390
|
-
"$ref": "#/components/schemas/exactOnSingleWordQuery"
|
|
2391
|
-
},
|
|
2392
|
-
"alternativesAsExact": {
|
|
2393
|
-
"$ref": "#/components/schemas/IndexSettings_alternativesAsExact"
|
|
2394
|
-
},
|
|
2395
|
-
"advancedSyntaxFeatures": {
|
|
2396
|
-
"$ref": "#/components/schemas/IndexSettings_advancedSyntaxFeatures"
|
|
2397
|
-
},
|
|
2398
|
-
"distinct": {
|
|
2399
|
-
"$ref": "#/components/schemas/distinct"
|
|
2400
|
-
},
|
|
2401
|
-
"replaceSynonymsInHighlight": {
|
|
2402
|
-
"$ref": "#/components/schemas/replaceSynonymsInHighlight"
|
|
2403
|
-
},
|
|
2404
|
-
"minProximity": {
|
|
2405
|
-
"$ref": "#/components/schemas/minProximity"
|
|
2406
|
-
},
|
|
2407
|
-
"responseFields": {
|
|
2408
|
-
"$ref": "#/components/schemas/responseFields"
|
|
2409
|
-
},
|
|
2410
|
-
"maxValuesPerFacet": {
|
|
2411
|
-
"$ref": "#/components/schemas/maxValuesPerFacet"
|
|
2412
|
-
},
|
|
2413
|
-
"sortFacetValuesBy": {
|
|
2414
|
-
"$ref": "#/components/schemas/sortFacetValuesBy"
|
|
2415
|
-
},
|
|
2416
|
-
"attributeCriteriaComputedByMinProximity": {
|
|
2417
|
-
"$ref": "#/components/schemas/attributeCriteriaComputedByMinProximity"
|
|
2418
|
-
},
|
|
2419
|
-
"renderingContent": {
|
|
2420
|
-
"$ref": "#/components/schemas/renderingContent"
|
|
2421
|
-
},
|
|
2422
|
-
"enableReRanking": {
|
|
2423
|
-
"$ref": "#/components/schemas/enableReRanking"
|
|
2424
|
-
},
|
|
2425
|
-
"reRankingApplyFilter": {
|
|
2426
|
-
"$ref": "#/components/schemas/properties-reRankingApplyFilter"
|
|
2427
|
-
}
|
|
2428
|
-
}
|
|
2429
|
-
},
|
|
2430
|
-
"recommendIndexSettings": {
|
|
2431
|
-
"description": "Index settings.",
|
|
2432
|
-
"allOf": [
|
|
2433
|
-
{
|
|
2434
|
-
"$ref": "#/components/schemas/baseIndexSettings"
|
|
2435
|
-
},
|
|
2436
|
-
{
|
|
2437
|
-
"$ref": "#/components/schemas/baseRecommendIndexSettings"
|
|
2438
|
-
}
|
|
2439
|
-
]
|
|
2440
|
-
},
|
|
2441
|
-
"recommendSearchParams": {
|
|
2442
|
-
"title": "Search parameters as object",
|
|
2443
|
-
"description": "Search parameters for filtering the recommendations.",
|
|
2444
|
-
"allOf": [
|
|
2445
|
-
{
|
|
2446
|
-
"$ref": "#/components/schemas/baseRecommendSearchParams"
|
|
2447
|
-
},
|
|
2448
|
-
{
|
|
2449
|
-
"$ref": "#/components/schemas/searchParamsQuery"
|
|
2450
|
-
},
|
|
2451
|
-
{
|
|
2452
|
-
"$ref": "#/components/schemas/recommendIndexSettings"
|
|
2453
|
-
}
|
|
2454
|
-
]
|
|
2455
|
-
},
|
|
2456
|
-
"baseRecommendRequest": {
|
|
2457
|
-
"type": "object",
|
|
2458
|
-
"additionalProperties": false,
|
|
2459
|
-
"properties": {
|
|
2460
|
-
"indexName": {
|
|
2461
|
-
"$ref": "#/components/schemas/indexName"
|
|
2462
|
-
},
|
|
2463
|
-
"threshold": {
|
|
2464
|
-
"type": "number",
|
|
2465
|
-
"format": "double",
|
|
2466
|
-
"minimum": 0,
|
|
2467
|
-
"maximum": 100,
|
|
2468
|
-
"description": "Minimum score a recommendation must have to be included in the response."
|
|
2469
|
-
},
|
|
2470
|
-
"maxRecommendations": {
|
|
2471
|
-
"type": "integer",
|
|
2472
|
-
"minimum": 1,
|
|
2473
|
-
"maximum": 30,
|
|
2474
|
-
"default": 30,
|
|
2475
|
-
"description": "Maximum number of recommendations to retrieve.\nBy default, all recommendations are returned and no fallback request is made.\nDepending on the available recommendations and the other request parameters,\nthe actual number of recommendations may be lower than this value.\n"
|
|
2476
|
-
},
|
|
2477
|
-
"queryParameters": {
|
|
2478
|
-
"$ref": "#/components/schemas/recommendSearchParams"
|
|
2479
|
-
}
|
|
2480
|
-
},
|
|
2481
|
-
"required": [
|
|
2482
|
-
"indexName",
|
|
2483
|
-
"threshold"
|
|
2484
|
-
]
|
|
2485
|
-
},
|
|
2486
|
-
"fbtModel": {
|
|
2487
|
-
"type": "string",
|
|
2488
|
-
"description": "Frequently bought together model.\n\nThis model recommends items that have been purchased within 1 day with the item with the ID `objectID`.\n",
|
|
2489
|
-
"enum": [
|
|
2490
|
-
"bought-together"
|
|
2491
|
-
]
|
|
2492
|
-
},
|
|
2493
|
-
"objectID": {
|
|
2494
|
-
"type": "string",
|
|
2495
|
-
"description": "Unique record identifier.",
|
|
2496
|
-
"example": "test-record-123"
|
|
2497
|
-
},
|
|
2498
|
-
"frequentlyBoughtTogether": {
|
|
2499
|
-
"type": "object",
|
|
2500
|
-
"properties": {
|
|
2501
|
-
"model": {
|
|
2502
|
-
"$ref": "#/components/schemas/fbtModel"
|
|
2503
|
-
},
|
|
2504
|
-
"objectID": {
|
|
2505
|
-
"$ref": "#/components/schemas/objectID"
|
|
2506
|
-
}
|
|
2507
|
-
},
|
|
2508
|
-
"required": [
|
|
2509
|
-
"model",
|
|
2510
|
-
"objectID"
|
|
2511
|
-
]
|
|
2512
|
-
},
|
|
2513
|
-
"boughtTogetherQuery": {
|
|
2514
|
-
"title": "Frequently bought together",
|
|
2515
|
-
"allOf": [
|
|
2516
|
-
{
|
|
2517
|
-
"$ref": "#/components/schemas/baseRecommendRequest"
|
|
2518
|
-
},
|
|
2519
|
-
{
|
|
2520
|
-
"$ref": "#/components/schemas/frequentlyBoughtTogether"
|
|
2521
|
-
}
|
|
2522
|
-
]
|
|
2523
|
-
},
|
|
2524
|
-
"relatedModel": {
|
|
2525
|
-
"type": "string",
|
|
2526
|
-
"description": "Related products or similar content model.\n\nThis model recommends items that are similar to the item with the ID `objectID`.\nSimilarity is determined from the user interactions and attributes.\n",
|
|
2527
|
-
"enum": [
|
|
2528
|
-
"related-products"
|
|
2529
|
-
]
|
|
2530
|
-
},
|
|
2531
|
-
"fallbackParams": {
|
|
2532
|
-
"title": "fallbackParameters",
|
|
2533
|
-
"allOf": [
|
|
2534
|
-
{
|
|
2535
|
-
"$ref": "#/components/schemas/recommendSearchParams"
|
|
2536
|
-
},
|
|
2537
|
-
{
|
|
2538
|
-
"type": "object",
|
|
2539
|
-
"description": "Search parameters to use for a fallback request if there aren't enough recommendations."
|
|
2540
|
-
}
|
|
2541
|
-
]
|
|
2542
|
-
},
|
|
2543
|
-
"relatedProducts": {
|
|
2544
|
-
"type": "object",
|
|
2545
|
-
"properties": {
|
|
2546
|
-
"model": {
|
|
2547
|
-
"$ref": "#/components/schemas/relatedModel"
|
|
2548
|
-
},
|
|
2549
|
-
"objectID": {
|
|
2550
|
-
"$ref": "#/components/schemas/objectID"
|
|
2551
|
-
},
|
|
2552
|
-
"fallbackParameters": {
|
|
2553
|
-
"$ref": "#/components/schemas/fallbackParams"
|
|
2554
|
-
}
|
|
2555
|
-
},
|
|
2556
|
-
"required": [
|
|
2557
|
-
"model",
|
|
2558
|
-
"objectID"
|
|
2559
|
-
]
|
|
2560
|
-
},
|
|
2561
|
-
"relatedQuery": {
|
|
2562
|
-
"title": "Related products",
|
|
2563
|
-
"allOf": [
|
|
2564
|
-
{
|
|
2565
|
-
"$ref": "#/components/schemas/baseRecommendRequest"
|
|
2566
|
-
},
|
|
2567
|
-
{
|
|
2568
|
-
"$ref": "#/components/schemas/relatedProducts"
|
|
2569
|
-
}
|
|
2570
|
-
]
|
|
2571
|
-
},
|
|
2572
|
-
"facetName": {
|
|
2573
|
-
"type": "string",
|
|
2574
|
-
"description": "Facet attribute. To be used in combination with `facetValue`.\nIf specified, only recommendations matching the facet filter will be returned.\n"
|
|
2575
|
-
},
|
|
2576
|
-
"facetValue": {
|
|
2577
|
-
"type": "string",
|
|
2578
|
-
"description": "Facet value. To be used in combination with `facetName`.\nIf specified, only recommendations matching the facet filter will be returned.\n"
|
|
2579
|
-
},
|
|
2580
|
-
"trendingItemsModel": {
|
|
2581
|
-
"description": "Trending items model.\n\nTrending items are determined from the number of conversion events collected on them.\n",
|
|
2582
|
-
"type": "string",
|
|
2583
|
-
"enum": [
|
|
2584
|
-
"trending-items"
|
|
2585
|
-
]
|
|
2586
|
-
},
|
|
2587
|
-
"trendingItems": {
|
|
2588
|
-
"type": "object",
|
|
2589
|
-
"properties": {
|
|
2590
|
-
"facetName": {
|
|
2591
|
-
"$ref": "#/components/schemas/facetName"
|
|
2592
|
-
},
|
|
2593
|
-
"facetValue": {
|
|
2594
|
-
"$ref": "#/components/schemas/facetValue"
|
|
2595
|
-
},
|
|
2596
|
-
"model": {
|
|
2597
|
-
"$ref": "#/components/schemas/trendingItemsModel"
|
|
2598
|
-
},
|
|
2599
|
-
"fallbackParameters": {
|
|
2600
|
-
"$ref": "#/components/schemas/fallbackParams"
|
|
2601
|
-
}
|
|
2602
|
-
},
|
|
2603
|
-
"required": [
|
|
2604
|
-
"model"
|
|
2605
|
-
]
|
|
2606
|
-
},
|
|
2607
|
-
"trendingItemsQuery": {
|
|
2608
|
-
"title": "Trending items",
|
|
2609
|
-
"allOf": [
|
|
2610
|
-
{
|
|
2611
|
-
"$ref": "#/components/schemas/baseRecommendRequest"
|
|
2612
|
-
},
|
|
2613
|
-
{
|
|
2614
|
-
"$ref": "#/components/schemas/trendingItems"
|
|
2615
|
-
}
|
|
2616
|
-
]
|
|
2617
|
-
},
|
|
2618
|
-
"trendingFacetsModel": {
|
|
2619
|
-
"type": "string",
|
|
2620
|
-
"description": "Trending facet values model.\n\nThis model recommends trending facet values for the specified facet attribute.\n",
|
|
2621
|
-
"enum": [
|
|
2622
|
-
"trending-facets"
|
|
2623
|
-
]
|
|
2624
|
-
},
|
|
2625
|
-
"trendingFacets": {
|
|
2626
|
-
"type": "object",
|
|
2627
|
-
"properties": {
|
|
2628
|
-
"facetName": {
|
|
2629
|
-
"type": "string",
|
|
2630
|
-
"description": "Facet attribute for which to retrieve trending facet values."
|
|
2631
|
-
},
|
|
2632
|
-
"model": {
|
|
2633
|
-
"$ref": "#/components/schemas/trendingFacetsModel"
|
|
2634
|
-
},
|
|
2635
|
-
"fallbackParameters": {
|
|
2636
|
-
"$ref": "#/components/schemas/fallbackParams"
|
|
2637
|
-
}
|
|
2638
|
-
},
|
|
2639
|
-
"required": [
|
|
2640
|
-
"facetName",
|
|
2641
|
-
"model"
|
|
2642
|
-
]
|
|
2643
|
-
},
|
|
2644
|
-
"trendingFacetsQuery": {
|
|
2645
|
-
"title": "Trending facet values",
|
|
2646
|
-
"allOf": [
|
|
2647
|
-
{
|
|
2648
|
-
"$ref": "#/components/schemas/baseRecommendRequest"
|
|
2649
|
-
},
|
|
2650
|
-
{
|
|
2651
|
-
"$ref": "#/components/schemas/trendingFacets"
|
|
2652
|
-
}
|
|
2653
|
-
]
|
|
2654
|
-
},
|
|
2655
|
-
"lookingSimilarModel": {
|
|
2656
|
-
"type": "string",
|
|
2657
|
-
"description": "Looking similar model.\n\nThis model recommends items that look similar to the item with the ID `objectID` based on image attributes in your index.\n",
|
|
2658
|
-
"enum": [
|
|
2659
|
-
"looking-similar"
|
|
2660
|
-
]
|
|
2661
|
-
},
|
|
2662
|
-
"lookingSimilar": {
|
|
2663
|
-
"type": "object",
|
|
2664
|
-
"properties": {
|
|
2665
|
-
"model": {
|
|
2666
|
-
"$ref": "#/components/schemas/lookingSimilarModel"
|
|
2667
|
-
},
|
|
2668
|
-
"objectID": {
|
|
2669
|
-
"$ref": "#/components/schemas/objectID"
|
|
2670
|
-
},
|
|
2671
|
-
"fallbackParameters": {
|
|
2672
|
-
"$ref": "#/components/schemas/fallbackParams"
|
|
2673
|
-
}
|
|
2674
|
-
},
|
|
2675
|
-
"required": [
|
|
2676
|
-
"model",
|
|
2677
|
-
"objectID"
|
|
2678
|
-
]
|
|
2679
|
-
},
|
|
2680
|
-
"lookingSimilarQuery": {
|
|
2681
|
-
"title": "Looking similar",
|
|
2682
|
-
"allOf": [
|
|
2683
|
-
{
|
|
2684
|
-
"$ref": "#/components/schemas/baseRecommendRequest"
|
|
2685
|
-
},
|
|
2686
|
-
{
|
|
2687
|
-
"$ref": "#/components/schemas/lookingSimilar"
|
|
2688
|
-
}
|
|
2689
|
-
]
|
|
2690
|
-
},
|
|
2691
|
-
"recommendationsRequest": {
|
|
2692
|
-
"oneOf": [
|
|
2693
|
-
{
|
|
2694
|
-
"$ref": "#/components/schemas/boughtTogetherQuery"
|
|
2695
|
-
},
|
|
2696
|
-
{
|
|
2697
|
-
"$ref": "#/components/schemas/relatedQuery"
|
|
2698
|
-
},
|
|
2699
|
-
{
|
|
2700
|
-
"$ref": "#/components/schemas/trendingItemsQuery"
|
|
2701
|
-
},
|
|
2702
|
-
{
|
|
2703
|
-
"$ref": "#/components/schemas/trendingFacetsQuery"
|
|
2704
|
-
},
|
|
2705
|
-
{
|
|
2706
|
-
"$ref": "#/components/schemas/lookingSimilarQuery"
|
|
2707
|
-
}
|
|
2708
|
-
]
|
|
2709
|
-
},
|
|
2710
|
-
"processingTimeMS": {
|
|
2711
|
-
"type": "integer",
|
|
2712
|
-
"description": "Time the server took to process the request, in milliseconds.",
|
|
2713
|
-
"example": 20
|
|
2714
|
-
},
|
|
2715
|
-
"RedirectRuleIndexMetadata": {
|
|
2716
|
-
"type": "object",
|
|
2717
|
-
"properties": {
|
|
2718
|
-
"source": {
|
|
2719
|
-
"type": "string",
|
|
2720
|
-
"description": "Source index for the redirect rule."
|
|
2721
|
-
},
|
|
2722
|
-
"dest": {
|
|
2723
|
-
"type": "string",
|
|
2724
|
-
"description": "Destination index for the redirect rule."
|
|
2725
|
-
},
|
|
2726
|
-
"reason": {
|
|
2727
|
-
"type": "string",
|
|
2728
|
-
"description": "Reason for the redirect rule."
|
|
2729
|
-
},
|
|
2730
|
-
"succeed": {
|
|
2731
|
-
"type": "boolean",
|
|
2732
|
-
"description": "Redirect rule status."
|
|
2733
|
-
},
|
|
2734
|
-
"data": {
|
|
2735
|
-
"title": "redirectRuleIndexData",
|
|
2736
|
-
"type": "object",
|
|
2737
|
-
"description": "Redirect rule data.",
|
|
2738
|
-
"required": [
|
|
2739
|
-
"ruleObjectID"
|
|
2740
|
-
],
|
|
2741
|
-
"properties": {
|
|
2742
|
-
"ruleObjectID": {
|
|
2743
|
-
"type": "string"
|
|
2744
|
-
}
|
|
2745
|
-
}
|
|
2746
|
-
}
|
|
2747
|
-
},
|
|
2748
|
-
"required": [
|
|
2749
|
-
"data",
|
|
2750
|
-
"succeed",
|
|
2751
|
-
"reason",
|
|
2752
|
-
"dest",
|
|
2753
|
-
"source"
|
|
2754
|
-
]
|
|
2755
|
-
},
|
|
2756
|
-
"baseSearchResponse": {
|
|
2757
|
-
"type": "object",
|
|
2758
|
-
"additionalProperties": true,
|
|
2759
|
-
"properties": {
|
|
2760
|
-
"abTestID": {
|
|
2761
|
-
"type": "integer",
|
|
2762
|
-
"description": "A/B test ID. This is only included in the response for indices that are part of an A/B test."
|
|
2763
|
-
},
|
|
2764
|
-
"abTestVariantID": {
|
|
2765
|
-
"type": "integer",
|
|
2766
|
-
"minimum": 1,
|
|
2767
|
-
"description": "Variant ID. This is only included in the response for indices that are part of an A/B test."
|
|
2768
|
-
},
|
|
2769
|
-
"aroundLatLng": {
|
|
2770
|
-
"type": "string",
|
|
2771
|
-
"description": "Computed geographical location.",
|
|
2772
|
-
"example": "40.71,-74.01",
|
|
2773
|
-
"pattern": "^(-?\\d+(\\.\\d+)?),\\s*(-?\\d+(\\.\\d+)?)$"
|
|
2774
|
-
},
|
|
2775
|
-
"automaticRadius": {
|
|
2776
|
-
"type": "string",
|
|
2777
|
-
"description": "Distance from a central coordinate provided by `aroundLatLng`."
|
|
2778
|
-
},
|
|
2779
|
-
"exhaustive": {
|
|
2780
|
-
"title": "exhaustive",
|
|
2781
|
-
"type": "object",
|
|
2782
|
-
"description": "Whether certain properties of the search response are calculated exhaustive (exact) or approximated.",
|
|
2783
|
-
"properties": {
|
|
2784
|
-
"facetsCount": {
|
|
2785
|
-
"type": "boolean",
|
|
2786
|
-
"title": "facetsCount",
|
|
2787
|
-
"description": "Whether the facet count is exhaustive (`true`) or approximate (`false`). See the [related discussion](https://support.algolia.com/hc/en-us/articles/4406975248145-Why-are-my-facet-and-hit-counts-not-accurate-)."
|
|
2788
|
-
},
|
|
2789
|
-
"facetValues": {
|
|
2790
|
-
"type": "boolean",
|
|
2791
|
-
"title": "facetValues",
|
|
2792
|
-
"description": "The value is `false` if not all facet values are retrieved."
|
|
2793
|
-
},
|
|
2794
|
-
"nbHits": {
|
|
2795
|
-
"type": "boolean",
|
|
2796
|
-
"title": "nbHits",
|
|
2797
|
-
"description": "Whether the `nbHits` is exhaustive (`true`) or approximate (`false`). When the query takes more than 50ms to be processed, the engine makes an approximation. This can happen when using complex filters on millions of records, when typo-tolerance was not exhaustive, or when enough hits have been retrieved (for example, after the engine finds 10,000 exact matches). `nbHits` is reported as non-exhaustive whenever an approximation is made, even if the approximation didn’t, in the end, impact the exhaustivity of the query."
|
|
2798
|
-
},
|
|
2799
|
-
"rulesMatch": {
|
|
2800
|
-
"type": "boolean",
|
|
2801
|
-
"title": "rulesMatch",
|
|
2802
|
-
"description": "Rules matching exhaustivity. The value is `false` if rules were enable for this query, and could not be fully processed due a timeout. This is generally caused by the number of alternatives (such as typos) which is too large."
|
|
2803
|
-
},
|
|
2804
|
-
"typo": {
|
|
2805
|
-
"type": "boolean",
|
|
2806
|
-
"title": "typo",
|
|
2807
|
-
"description": "Whether the typo search was exhaustive (`true`) or approximate (`false`). An approximation is done when the typo search query part takes more than 10% of the query budget (ie. 5ms by default) to be processed (this can happen when a lot of typo alternatives exist for the query). This field will not be included when typo-tolerance is entirely disabled."
|
|
2808
|
-
}
|
|
2809
|
-
}
|
|
2810
|
-
},
|
|
2811
|
-
"appliedRules": {
|
|
2812
|
-
"description": "Rules applied to the query.",
|
|
2813
|
-
"title": "appliedRules",
|
|
2814
|
-
"type": "array",
|
|
2815
|
-
"items": {
|
|
2816
|
-
"type": "object"
|
|
2817
|
-
}
|
|
2818
|
-
},
|
|
2819
|
-
"exhaustiveFacetsCount": {
|
|
2820
|
-
"type": "boolean",
|
|
2821
|
-
"description": "See the `facetsCount` field of the `exhaustive` object in the response.",
|
|
2822
|
-
"deprecated": true
|
|
2823
|
-
},
|
|
2824
|
-
"exhaustiveNbHits": {
|
|
2825
|
-
"type": "boolean",
|
|
2826
|
-
"description": "See the `nbHits` field of the `exhaustive` object in the response.",
|
|
2827
|
-
"deprecated": true
|
|
2828
|
-
},
|
|
2829
|
-
"exhaustiveTypo": {
|
|
2830
|
-
"type": "boolean",
|
|
2831
|
-
"description": "See the `typo` field of the `exhaustive` object in the response.",
|
|
2832
|
-
"deprecated": true
|
|
2833
|
-
},
|
|
2834
|
-
"facets": {
|
|
2835
|
-
"title": "facets",
|
|
2836
|
-
"type": "object",
|
|
2837
|
-
"additionalProperties": {
|
|
2838
|
-
"x-additionalPropertiesName": "facet",
|
|
2839
|
-
"type": "object",
|
|
2840
|
-
"additionalProperties": {
|
|
2841
|
-
"x-additionalPropertiesName": "facet count",
|
|
2842
|
-
"type": "integer"
|
|
2843
|
-
}
|
|
2844
|
-
},
|
|
2845
|
-
"description": "Facet counts.",
|
|
2846
|
-
"example": {
|
|
2847
|
-
"category": {
|
|
2848
|
-
"food": 1,
|
|
2849
|
-
"tech": 42
|
|
2850
|
-
}
|
|
2851
|
-
}
|
|
2852
|
-
},
|
|
2853
|
-
"facets_stats": {
|
|
2854
|
-
"type": "object",
|
|
2855
|
-
"description": "Statistics for numerical facets.",
|
|
2856
|
-
"additionalProperties": {
|
|
2857
|
-
"title": "facetStats",
|
|
2858
|
-
"type": "object",
|
|
2859
|
-
"properties": {
|
|
2860
|
-
"min": {
|
|
2861
|
-
"type": "number",
|
|
2862
|
-
"format": "double",
|
|
2863
|
-
"description": "Minimum value in the results."
|
|
2864
|
-
},
|
|
2865
|
-
"max": {
|
|
2866
|
-
"type": "number",
|
|
2867
|
-
"format": "double",
|
|
2868
|
-
"description": "Maximum value in the results."
|
|
2869
|
-
},
|
|
2870
|
-
"avg": {
|
|
2871
|
-
"type": "number",
|
|
2872
|
-
"format": "double",
|
|
2873
|
-
"description": "Average facet value in the results."
|
|
2874
|
-
},
|
|
2875
|
-
"sum": {
|
|
2876
|
-
"type": "number",
|
|
2877
|
-
"format": "double",
|
|
2878
|
-
"description": "Sum of all values in the results."
|
|
2879
|
-
}
|
|
2880
|
-
}
|
|
2881
|
-
}
|
|
2882
|
-
},
|
|
2883
|
-
"index": {
|
|
2884
|
-
"type": "string",
|
|
2885
|
-
"example": "indexName",
|
|
2886
|
-
"description": "Index name used for the query."
|
|
2887
|
-
},
|
|
2888
|
-
"indexUsed": {
|
|
2889
|
-
"type": "string",
|
|
2890
|
-
"description": "Index name used for the query. During A/B testing, the targeted index isn't always the index used by the query.",
|
|
2891
|
-
"example": "indexNameAlt"
|
|
2892
|
-
},
|
|
2893
|
-
"message": {
|
|
2894
|
-
"type": "string",
|
|
2895
|
-
"description": "Warnings about the query."
|
|
2896
|
-
},
|
|
2897
|
-
"nbSortedHits": {
|
|
2898
|
-
"type": "integer",
|
|
2899
|
-
"description": "Number of hits selected and sorted by the relevant sort algorithm.",
|
|
2900
|
-
"example": 20
|
|
2901
|
-
},
|
|
2902
|
-
"parsedQuery": {
|
|
2903
|
-
"type": "string",
|
|
2904
|
-
"description": "Post-[normalization](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/#what-does-normalization-mean) query string that will be searched.",
|
|
2905
|
-
"example": "george clo"
|
|
2906
|
-
},
|
|
2907
|
-
"processingTimeMS": {
|
|
2908
|
-
"$ref": "#/components/schemas/processingTimeMS"
|
|
2909
|
-
},
|
|
2910
|
-
"processingTimingsMS": {
|
|
2911
|
-
"type": "object",
|
|
2912
|
-
"description": "Experimental. List of processing steps and their times, in milliseconds. You can use this list to investigate performance issues."
|
|
2913
|
-
},
|
|
2914
|
-
"queryAfterRemoval": {
|
|
2915
|
-
"type": "string",
|
|
2916
|
-
"description": "Markup text indicating which parts of the original query have been removed to retrieve a non-empty result set."
|
|
2917
|
-
},
|
|
2918
|
-
"redirect": {
|
|
2919
|
-
"title": "redirect",
|
|
2920
|
-
"type": "object",
|
|
2921
|
-
"description": "[Redirect results to a URL](https://www.algolia.com/doc/guides/managing-results/rules/merchandising-and-promoting/how-to/redirects/), this this parameter is for internal use only.\n",
|
|
2922
|
-
"properties": {
|
|
2923
|
-
"index": {
|
|
2924
|
-
"type": "array",
|
|
2925
|
-
"items": {
|
|
2926
|
-
"$ref": "#/components/schemas/RedirectRuleIndexMetadata"
|
|
2927
|
-
}
|
|
2928
|
-
}
|
|
2929
|
-
}
|
|
2930
|
-
},
|
|
2931
|
-
"renderingContent": {
|
|
2932
|
-
"$ref": "#/components/schemas/renderingContent"
|
|
2933
|
-
},
|
|
2934
|
-
"serverTimeMS": {
|
|
2935
|
-
"type": "integer",
|
|
2936
|
-
"description": "Time the server took to process the request, in milliseconds.",
|
|
2937
|
-
"example": 20
|
|
2938
|
-
},
|
|
2939
|
-
"serverUsed": {
|
|
2940
|
-
"type": "string",
|
|
2941
|
-
"description": "Host name of the server that processed the request.",
|
|
2942
|
-
"example": "c2-uk-3.algolia.net"
|
|
2943
|
-
},
|
|
2944
|
-
"userData": {
|
|
2945
|
-
"$ref": "#/components/schemas/userData"
|
|
2946
|
-
},
|
|
2947
|
-
"queryID": {
|
|
2948
|
-
"type": "string",
|
|
2949
|
-
"description": "Unique identifier for the query. This is used for [click analytics](https://www.algolia.com/doc/guides/analytics/click-analytics/).",
|
|
2950
|
-
"example": "a00dbc80a8d13c4565a442e7e2dca80a"
|
|
2951
|
-
},
|
|
2952
|
-
"_automaticInsights": {
|
|
2953
|
-
"type": "boolean",
|
|
2954
|
-
"description": "Whether automatic events collection is enabled for the application."
|
|
2955
|
-
}
|
|
2956
|
-
}
|
|
2957
|
-
},
|
|
2958
|
-
"page": {
|
|
2959
|
-
"type": "integer",
|
|
2960
|
-
"description": "Page of search results to retrieve.",
|
|
2961
|
-
"default": 0,
|
|
2962
|
-
"minimum": 0,
|
|
2963
|
-
"x-categories": [
|
|
2964
|
-
"Pagination"
|
|
2965
|
-
]
|
|
2966
|
-
},
|
|
2967
|
-
"nbHits": {
|
|
2968
|
-
"type": "integer",
|
|
2969
|
-
"description": "Number of results (hits).",
|
|
2970
|
-
"example": 20
|
|
2971
|
-
},
|
|
2972
|
-
"nbPages": {
|
|
2973
|
-
"type": "integer",
|
|
2974
|
-
"description": "Number of pages of results.",
|
|
2975
|
-
"example": 1
|
|
2976
|
-
},
|
|
2977
|
-
"hitsPerPage": {
|
|
2978
|
-
"type": "integer",
|
|
2979
|
-
"description": "Number of hits per page.",
|
|
2980
|
-
"default": 20,
|
|
2981
|
-
"minimum": 1,
|
|
2982
|
-
"maximum": 1000,
|
|
2983
|
-
"x-categories": [
|
|
2984
|
-
"Pagination"
|
|
2985
|
-
]
|
|
2986
|
-
},
|
|
2987
|
-
"SearchPagination": {
|
|
2988
|
-
"type": "object",
|
|
2989
|
-
"additionalProperties": false,
|
|
2990
|
-
"properties": {
|
|
2991
|
-
"page": {
|
|
2992
|
-
"$ref": "#/components/schemas/page"
|
|
2993
|
-
},
|
|
2994
|
-
"nbHits": {
|
|
2995
|
-
"$ref": "#/components/schemas/nbHits"
|
|
2996
|
-
},
|
|
2997
|
-
"nbPages": {
|
|
2998
|
-
"$ref": "#/components/schemas/nbPages"
|
|
2999
|
-
},
|
|
3000
|
-
"hitsPerPage": {
|
|
3001
|
-
"$ref": "#/components/schemas/hitsPerPage"
|
|
3002
|
-
}
|
|
3003
|
-
}
|
|
3004
|
-
},
|
|
3005
|
-
"highlightedValue": {
|
|
3006
|
-
"type": "string",
|
|
3007
|
-
"description": "Highlighted attribute value, including HTML tags.",
|
|
3008
|
-
"example": "<em>George</em> <em>Clo</em>oney"
|
|
3009
|
-
},
|
|
3010
|
-
"matchLevel": {
|
|
3011
|
-
"type": "string",
|
|
3012
|
-
"description": "Whether the whole query string matches or only a part.",
|
|
3013
|
-
"enum": [
|
|
3014
|
-
"none",
|
|
3015
|
-
"partial",
|
|
3016
|
-
"full"
|
|
3017
|
-
]
|
|
3018
|
-
},
|
|
3019
|
-
"highlightResultOption": {
|
|
3020
|
-
"title": "highlightResultOption",
|
|
3021
|
-
"type": "object",
|
|
3022
|
-
"description": "Surround words that match the query with HTML tags for highlighting.",
|
|
3023
|
-
"additionalProperties": false,
|
|
3024
|
-
"properties": {
|
|
3025
|
-
"value": {
|
|
3026
|
-
"$ref": "#/components/schemas/highlightedValue"
|
|
3027
|
-
},
|
|
3028
|
-
"matchLevel": {
|
|
3029
|
-
"$ref": "#/components/schemas/matchLevel"
|
|
3030
|
-
},
|
|
3031
|
-
"matchedWords": {
|
|
3032
|
-
"type": "array",
|
|
3033
|
-
"description": "List of matched words from the search query.",
|
|
3034
|
-
"example": [
|
|
3035
|
-
"action"
|
|
3036
|
-
],
|
|
3037
|
-
"items": {
|
|
3038
|
-
"type": "string"
|
|
3039
|
-
}
|
|
3040
|
-
},
|
|
3041
|
-
"fullyHighlighted": {
|
|
3042
|
-
"type": "boolean",
|
|
3043
|
-
"description": "Whether the entire attribute value is highlighted."
|
|
3044
|
-
}
|
|
3045
|
-
},
|
|
3046
|
-
"required": [
|
|
3047
|
-
"value",
|
|
3048
|
-
"matchLevel",
|
|
3049
|
-
"matchedWords"
|
|
3050
|
-
],
|
|
3051
|
-
"x-discriminator-fields": [
|
|
3052
|
-
"matchLevel",
|
|
3053
|
-
"matchedWords"
|
|
3054
|
-
]
|
|
3055
|
-
},
|
|
3056
|
-
"highlightResultMap": {
|
|
3057
|
-
"title": "highlightResultMap",
|
|
3058
|
-
"type": "object",
|
|
3059
|
-
"description": "Surround words that match the query with HTML tags for highlighting.",
|
|
3060
|
-
"x-is-free-form": false,
|
|
3061
|
-
"additionalProperties": {
|
|
3062
|
-
"x-additionalPropertiesName": "attribute",
|
|
3063
|
-
"$ref": "#/components/schemas/highlightResult"
|
|
3064
|
-
}
|
|
3065
|
-
},
|
|
3066
|
-
"highlightResult": {
|
|
3067
|
-
"oneOf": [
|
|
3068
|
-
{
|
|
3069
|
-
"$ref": "#/components/schemas/highlightResultOption"
|
|
3070
|
-
},
|
|
3071
|
-
{
|
|
3072
|
-
"$ref": "#/components/schemas/highlightResultMap"
|
|
3073
|
-
},
|
|
3074
|
-
{
|
|
3075
|
-
"$ref": "#/components/schemas/highlightResultArray"
|
|
3076
|
-
}
|
|
3077
|
-
]
|
|
3078
|
-
},
|
|
3079
|
-
"highlightResultArray": {
|
|
3080
|
-
"title": "highlightResultArray",
|
|
3081
|
-
"type": "array",
|
|
3082
|
-
"description": "Surround words that match the query with HTML tags for highlighting.",
|
|
3083
|
-
"items": {
|
|
3084
|
-
"$ref": "#/components/schemas/highlightResult"
|
|
3085
|
-
}
|
|
3086
|
-
},
|
|
3087
|
-
"snippetResultOption": {
|
|
3088
|
-
"title": "snippetResultOption",
|
|
3089
|
-
"type": "object",
|
|
3090
|
-
"description": "Snippets that show the context around a matching search query.",
|
|
3091
|
-
"additionalProperties": false,
|
|
3092
|
-
"properties": {
|
|
3093
|
-
"value": {
|
|
3094
|
-
"$ref": "#/components/schemas/highlightedValue"
|
|
3095
|
-
},
|
|
3096
|
-
"matchLevel": {
|
|
3097
|
-
"$ref": "#/components/schemas/matchLevel"
|
|
3098
|
-
}
|
|
3099
|
-
},
|
|
3100
|
-
"required": [
|
|
3101
|
-
"value",
|
|
3102
|
-
"matchLevel"
|
|
3103
|
-
],
|
|
3104
|
-
"x-discriminator-fields": [
|
|
3105
|
-
"matchLevel"
|
|
3106
|
-
]
|
|
3107
|
-
},
|
|
3108
|
-
"snippetResultMap": {
|
|
3109
|
-
"title": "snippetResultMap",
|
|
3110
|
-
"type": "object",
|
|
3111
|
-
"description": "Snippets that show the context around a matching search query.",
|
|
3112
|
-
"x-is-free-form": false,
|
|
3113
|
-
"additionalProperties": {
|
|
3114
|
-
"x-additionalPropertiesName": "attribute",
|
|
3115
|
-
"$ref": "#/components/schemas/snippetResult"
|
|
3116
|
-
}
|
|
3117
|
-
},
|
|
3118
|
-
"snippetResult": {
|
|
3119
|
-
"oneOf": [
|
|
3120
|
-
{
|
|
3121
|
-
"$ref": "#/components/schemas/snippetResultOption"
|
|
3122
|
-
},
|
|
3123
|
-
{
|
|
3124
|
-
"$ref": "#/components/schemas/snippetResultMap"
|
|
3125
|
-
},
|
|
3126
|
-
{
|
|
3127
|
-
"$ref": "#/components/schemas/snippetResultArray"
|
|
3128
|
-
}
|
|
3129
|
-
]
|
|
3130
|
-
},
|
|
3131
|
-
"snippetResultArray": {
|
|
3132
|
-
"title": "snippetResultArray",
|
|
3133
|
-
"type": "array",
|
|
3134
|
-
"description": "Snippets that show the context around a matching search query.",
|
|
3135
|
-
"items": {
|
|
3136
|
-
"$ref": "#/components/schemas/snippetResult"
|
|
3137
|
-
}
|
|
3138
|
-
},
|
|
3139
|
-
"matchedGeoLocation": {
|
|
3140
|
-
"type": "object",
|
|
3141
|
-
"properties": {
|
|
3142
|
-
"lat": {
|
|
3143
|
-
"type": "number",
|
|
3144
|
-
"format": "double",
|
|
3145
|
-
"description": "Latitude of the matched location."
|
|
3146
|
-
},
|
|
3147
|
-
"lng": {
|
|
3148
|
-
"type": "number",
|
|
3149
|
-
"format": "double",
|
|
3150
|
-
"description": "Longitude of the matched location."
|
|
3151
|
-
},
|
|
3152
|
-
"distance": {
|
|
3153
|
-
"type": "integer",
|
|
3154
|
-
"description": "Distance between the matched location and the search location (in meters)."
|
|
3155
|
-
}
|
|
3156
|
-
}
|
|
3157
|
-
},
|
|
3158
|
-
"personalization": {
|
|
3159
|
-
"type": "object",
|
|
3160
|
-
"properties": {
|
|
3161
|
-
"filtersScore": {
|
|
3162
|
-
"type": "integer",
|
|
3163
|
-
"description": "The score of the filters."
|
|
3164
|
-
},
|
|
3165
|
-
"rankingScore": {
|
|
3166
|
-
"type": "integer",
|
|
3167
|
-
"description": "The score of the ranking."
|
|
3168
|
-
},
|
|
3169
|
-
"score": {
|
|
3170
|
-
"type": "integer",
|
|
3171
|
-
"description": "The score of the event."
|
|
3172
|
-
}
|
|
3173
|
-
}
|
|
3174
|
-
},
|
|
3175
|
-
"rankingInfo": {
|
|
3176
|
-
"type": "object",
|
|
3177
|
-
"description": "Object with detailed information about the record's ranking.",
|
|
3178
|
-
"additionalProperties": false,
|
|
3179
|
-
"properties": {
|
|
3180
|
-
"filters": {
|
|
3181
|
-
"type": "integer",
|
|
3182
|
-
"minimum": 0,
|
|
3183
|
-
"description": "Whether a filter matched the query."
|
|
3184
|
-
},
|
|
3185
|
-
"firstMatchedWord": {
|
|
3186
|
-
"type": "integer",
|
|
3187
|
-
"minimum": 0,
|
|
3188
|
-
"description": "Position of the first matched word in the best matching attribute of the record."
|
|
3189
|
-
},
|
|
3190
|
-
"geoDistance": {
|
|
3191
|
-
"type": "integer",
|
|
3192
|
-
"minimum": 0,
|
|
3193
|
-
"description": "Distance between the geo location in the search query and the best matching geo location in the record, divided by the geo precision (in meters)."
|
|
3194
|
-
},
|
|
3195
|
-
"geoPrecision": {
|
|
3196
|
-
"type": "integer",
|
|
3197
|
-
"minimum": 1,
|
|
3198
|
-
"description": "Precision used when computing the geo distance, in meters."
|
|
3199
|
-
},
|
|
3200
|
-
"matchedGeoLocation": {
|
|
3201
|
-
"$ref": "#/components/schemas/matchedGeoLocation"
|
|
3202
|
-
},
|
|
3203
|
-
"personalization": {
|
|
3204
|
-
"$ref": "#/components/schemas/personalization"
|
|
3205
|
-
},
|
|
3206
|
-
"nbExactWords": {
|
|
3207
|
-
"type": "integer",
|
|
3208
|
-
"minimum": 0,
|
|
3209
|
-
"description": "Number of exactly matched words."
|
|
3210
|
-
},
|
|
3211
|
-
"nbTypos": {
|
|
3212
|
-
"type": "integer",
|
|
3213
|
-
"minimum": 0,
|
|
3214
|
-
"description": "Number of typos encountered when matching the record."
|
|
3215
|
-
},
|
|
3216
|
-
"promoted": {
|
|
3217
|
-
"type": "boolean",
|
|
3218
|
-
"description": "Whether the record was promoted by a rule."
|
|
3219
|
-
},
|
|
3220
|
-
"proximityDistance": {
|
|
3221
|
-
"type": "integer",
|
|
3222
|
-
"minimum": 0,
|
|
3223
|
-
"description": "Number of words between multiple matches in the query plus 1. For single word queries, `proximityDistance` is 0."
|
|
3224
|
-
},
|
|
3225
|
-
"userScore": {
|
|
3226
|
-
"type": "integer",
|
|
3227
|
-
"description": "Overall ranking of the record, expressed as a single integer. This attribute is internal."
|
|
3228
|
-
},
|
|
3229
|
-
"words": {
|
|
3230
|
-
"type": "integer",
|
|
3231
|
-
"minimum": 1,
|
|
3232
|
-
"description": "Number of matched words."
|
|
3233
|
-
},
|
|
3234
|
-
"promotedByReRanking": {
|
|
3235
|
-
"type": "boolean",
|
|
3236
|
-
"description": "Whether the record is re-ranked."
|
|
3237
|
-
}
|
|
3238
|
-
},
|
|
3239
|
-
"required": [
|
|
3240
|
-
"nbTypos",
|
|
3241
|
-
"firstMatchedWord",
|
|
3242
|
-
"geoDistance",
|
|
3243
|
-
"nbExactWords",
|
|
3244
|
-
"userScore"
|
|
3245
|
-
]
|
|
3246
|
-
},
|
|
3247
|
-
"distinctSeqID": {
|
|
3248
|
-
"type": "integer"
|
|
3249
|
-
},
|
|
3250
|
-
"recommendScore": {
|
|
3251
|
-
"type": "number",
|
|
3252
|
-
"format": "double",
|
|
3253
|
-
"minimum": 0,
|
|
3254
|
-
"maximum": 100,
|
|
3255
|
-
"description": "Recommendation score."
|
|
3256
|
-
},
|
|
3257
|
-
"recommendHit": {
|
|
3258
|
-
"type": "object",
|
|
3259
|
-
"description": "Recommend hit.",
|
|
3260
|
-
"additionalProperties": true,
|
|
3261
|
-
"required": [
|
|
3262
|
-
"objectID"
|
|
3263
|
-
],
|
|
3264
|
-
"properties": {
|
|
3265
|
-
"objectID": {
|
|
3266
|
-
"$ref": "#/components/schemas/objectID"
|
|
3267
|
-
},
|
|
3268
|
-
"_highlightResult": {
|
|
3269
|
-
"$ref": "#/components/schemas/highlightResultMap"
|
|
3270
|
-
},
|
|
3271
|
-
"_snippetResult": {
|
|
3272
|
-
"$ref": "#/components/schemas/snippetResultMap"
|
|
3273
|
-
},
|
|
3274
|
-
"_rankingInfo": {
|
|
3275
|
-
"$ref": "#/components/schemas/rankingInfo"
|
|
3276
|
-
},
|
|
3277
|
-
"_distinctSeqID": {
|
|
3278
|
-
"$ref": "#/components/schemas/distinctSeqID"
|
|
3279
|
-
},
|
|
3280
|
-
"_score": {
|
|
3281
|
-
"$ref": "#/components/schemas/recommendScore"
|
|
3282
|
-
}
|
|
3283
|
-
},
|
|
3284
|
-
"x-discriminator-fields": [
|
|
3285
|
-
"objectID"
|
|
3286
|
-
]
|
|
3287
|
-
},
|
|
3288
|
-
"trendingFacetHit": {
|
|
3289
|
-
"type": "object",
|
|
3290
|
-
"description": "Trending facet hit.",
|
|
3291
|
-
"required": [
|
|
3292
|
-
"facetName",
|
|
3293
|
-
"facetValue"
|
|
3294
|
-
],
|
|
3295
|
-
"properties": {
|
|
3296
|
-
"_score": {
|
|
3297
|
-
"$ref": "#/components/schemas/recommendScore"
|
|
3298
|
-
},
|
|
3299
|
-
"facetName": {
|
|
3300
|
-
"$ref": "#/components/schemas/facetName"
|
|
3301
|
-
},
|
|
3302
|
-
"facetValue": {
|
|
3303
|
-
"$ref": "#/components/schemas/facetValue"
|
|
3304
|
-
}
|
|
3305
|
-
},
|
|
3306
|
-
"x-discriminator-fields": [
|
|
3307
|
-
"facetName",
|
|
3308
|
-
"facetValue"
|
|
3309
|
-
]
|
|
3310
|
-
},
|
|
3311
|
-
"recommendationsHit": {
|
|
3312
|
-
"oneOf": [
|
|
3313
|
-
{
|
|
3314
|
-
"$ref": "#/components/schemas/recommendHit"
|
|
3315
|
-
},
|
|
3316
|
-
{
|
|
3317
|
-
"$ref": "#/components/schemas/trendingFacetHit"
|
|
3318
|
-
}
|
|
3319
|
-
]
|
|
3320
|
-
},
|
|
3321
|
-
"recommendationsHits": {
|
|
3322
|
-
"type": "object",
|
|
3323
|
-
"additionalProperties": false,
|
|
3324
|
-
"properties": {
|
|
3325
|
-
"hits": {
|
|
3326
|
-
"type": "array",
|
|
3327
|
-
"items": {
|
|
3328
|
-
"$ref": "#/components/schemas/recommendationsHit"
|
|
3329
|
-
}
|
|
3330
|
-
}
|
|
3331
|
-
},
|
|
3332
|
-
"required": [
|
|
3333
|
-
"hits"
|
|
3334
|
-
]
|
|
3335
|
-
},
|
|
3336
|
-
"recommendationsResults": {
|
|
3337
|
-
"allOf": [
|
|
3338
|
-
{
|
|
3339
|
-
"$ref": "#/components/schemas/baseSearchResponse"
|
|
3340
|
-
},
|
|
3341
|
-
{
|
|
3342
|
-
"$ref": "#/components/schemas/SearchPagination"
|
|
3343
|
-
},
|
|
3344
|
-
{
|
|
3345
|
-
"$ref": "#/components/schemas/recommendationsHits"
|
|
3346
|
-
}
|
|
3347
|
-
]
|
|
3348
|
-
},
|
|
3349
|
-
"recommendModels": {
|
|
3350
|
-
"type": "string",
|
|
3351
|
-
"enum": [
|
|
3352
|
-
"related-products",
|
|
3353
|
-
"bought-together",
|
|
3354
|
-
"trending-facets",
|
|
3355
|
-
"trending-items"
|
|
3356
|
-
]
|
|
3357
|
-
},
|
|
3358
|
-
"updatedAt": {
|
|
3359
|
-
"type": "string",
|
|
3360
|
-
"example": "2023-07-04T12:49:15Z",
|
|
3361
|
-
"description": "Date and time when the object was updated, in RFC 3339 format."
|
|
3362
|
-
},
|
|
3363
|
-
"ruleID": {
|
|
3364
|
-
"title": "objectID",
|
|
3365
|
-
"type": "string",
|
|
3366
|
-
"description": "Unique identifier of a rule object."
|
|
3367
|
-
},
|
|
3368
|
-
"context": {
|
|
3369
|
-
"type": "string",
|
|
3370
|
-
"pattern": "[A-Za-z0-9_-]+",
|
|
3371
|
-
"description": "An additional restriction that only triggers the rule, when the search has the same value as `ruleContexts` parameter.\nFor example, if `context: mobile`, the rule is only triggered when the search request has a matching `ruleContexts: mobile`.\nA rule context must only contain alphanumeric characters.\n",
|
|
3372
|
-
"example": "mobile"
|
|
3373
|
-
},
|
|
3374
|
-
"Condition": {
|
|
3375
|
-
"type": "object",
|
|
3376
|
-
"description": "Condition that triggers the rule.\nIf not specified, the rule is triggered for all recommendations.\n",
|
|
3377
|
-
"properties": {
|
|
3378
|
-
"filters": {
|
|
3379
|
-
"$ref": "#/components/schemas/filters"
|
|
3380
|
-
},
|
|
3381
|
-
"context": {
|
|
3382
|
-
"$ref": "#/components/schemas/context"
|
|
3383
|
-
}
|
|
3384
|
-
}
|
|
3385
|
-
},
|
|
3386
|
-
"HideConsequenceObject": {
|
|
3387
|
-
"type": "object",
|
|
3388
|
-
"description": "Object ID of the recommendation you want to exclude.",
|
|
3389
|
-
"properties": {
|
|
3390
|
-
"objectID": {
|
|
3391
|
-
"$ref": "#/components/schemas/objectID"
|
|
3392
|
-
}
|
|
3393
|
-
}
|
|
3394
|
-
},
|
|
3395
|
-
"HideConsequence": {
|
|
3396
|
-
"type": "array",
|
|
3397
|
-
"description": "Exclude items from recommendations.",
|
|
3398
|
-
"minItems": 1,
|
|
3399
|
-
"items": {
|
|
3400
|
-
"$ref": "#/components/schemas/HideConsequenceObject"
|
|
3401
|
-
}
|
|
3402
|
-
},
|
|
3403
|
-
"PromoteConsequenceObject": {
|
|
3404
|
-
"type": "object",
|
|
3405
|
-
"description": "Object ID and position of the recommendation you want to pin.",
|
|
3406
|
-
"properties": {
|
|
3407
|
-
"objectID": {
|
|
3408
|
-
"$ref": "#/components/schemas/objectID"
|
|
3409
|
-
},
|
|
3410
|
-
"position": {
|
|
3411
|
-
"type": "integer",
|
|
3412
|
-
"description": "Index in the list of recommendations where to place this item.",
|
|
3413
|
-
"minimum": 0
|
|
3414
|
-
}
|
|
3415
|
-
}
|
|
3416
|
-
},
|
|
3417
|
-
"PromoteConsequence": {
|
|
3418
|
-
"type": "array",
|
|
3419
|
-
"description": "Place items at specific positions in the list of recommendations.",
|
|
3420
|
-
"minItems": 1,
|
|
3421
|
-
"items": {
|
|
3422
|
-
"$ref": "#/components/schemas/PromoteConsequenceObject"
|
|
3423
|
-
}
|
|
3424
|
-
},
|
|
3425
|
-
"AutoFacetFilter": {
|
|
3426
|
-
"type": "object",
|
|
3427
|
-
"description": "Facet attribute. Only recommendations with the same value (or only recommendations with a different value) as the original viewed item are included.",
|
|
3428
|
-
"properties": {
|
|
3429
|
-
"facet": {
|
|
3430
|
-
"type": "string",
|
|
3431
|
-
"description": "Facet attribute."
|
|
3432
|
-
},
|
|
3433
|
-
"negative": {
|
|
3434
|
-
"type": "boolean",
|
|
3435
|
-
"description": "Whether the filter is negative.\nIf true, recommendations must not have the same value for the `facet` attribute.\nIf false, recommendations must have the same value for the `facet` attribute.\n"
|
|
3436
|
-
}
|
|
3437
|
-
}
|
|
3438
|
-
},
|
|
3439
|
-
"ParamsConsequence": {
|
|
3440
|
-
"type": "object",
|
|
3441
|
-
"description": "Filter or boost recommendations matching a facet filter.",
|
|
3442
|
-
"properties": {
|
|
3443
|
-
"automaticFacetFilters": {
|
|
3444
|
-
"type": "array",
|
|
3445
|
-
"description": "Filter recommendations that match or don't match the same `facet:facet_value` combination as the viewed item.",
|
|
3446
|
-
"items": {
|
|
3447
|
-
"$ref": "#/components/schemas/AutoFacetFilter"
|
|
3448
|
-
}
|
|
3449
|
-
},
|
|
3450
|
-
"filters": {
|
|
3451
|
-
"$ref": "#/components/schemas/filters"
|
|
3452
|
-
},
|
|
3453
|
-
"optionalFilters": {
|
|
3454
|
-
"type": "array",
|
|
3455
|
-
"description": "Filters to promote or demote records in the search results.\n\nOptional filters work like facet filters, but they don't exclude records from the search results.\nRecords that match the optional filter rank before records that don't match.\nMatches with higher weights (`<score=N>`) rank before matches with lower weights.\nIf you're using a negative filter `facet:-value`, matching records rank after records that don't match.\n",
|
|
3456
|
-
"items": {
|
|
3457
|
-
"type": "string"
|
|
3458
|
-
},
|
|
3459
|
-
"example": [
|
|
3460
|
-
"category:books<score=1>",
|
|
3461
|
-
"category:-movies<score=1>"
|
|
3462
|
-
]
|
|
3463
|
-
}
|
|
3464
|
-
}
|
|
3465
|
-
},
|
|
3466
|
-
"Consequence": {
|
|
3467
|
-
"type": "object",
|
|
3468
|
-
"description": "Effect of the rule.",
|
|
3469
|
-
"properties": {
|
|
3470
|
-
"hide": {
|
|
3471
|
-
"$ref": "#/components/schemas/HideConsequence"
|
|
3472
|
-
},
|
|
3473
|
-
"promote": {
|
|
3474
|
-
"$ref": "#/components/schemas/PromoteConsequence"
|
|
3475
|
-
},
|
|
3476
|
-
"params": {
|
|
3477
|
-
"$ref": "#/components/schemas/ParamsConsequence"
|
|
3478
|
-
}
|
|
3479
|
-
}
|
|
3480
|
-
},
|
|
3481
|
-
"timeRange": {
|
|
3482
|
-
"type": "object",
|
|
3483
|
-
"additionalProperties": false,
|
|
3484
|
-
"properties": {
|
|
3485
|
-
"from": {
|
|
3486
|
-
"type": "integer",
|
|
3487
|
-
"format": "int64",
|
|
3488
|
-
"description": "When the rule should start to be active, in Unix epoch time."
|
|
3489
|
-
},
|
|
3490
|
-
"until": {
|
|
3491
|
-
"type": "integer",
|
|
3492
|
-
"format": "int64",
|
|
3493
|
-
"description": "When the rule should stop to be active, in Unix epoch time."
|
|
3494
|
-
}
|
|
3495
|
-
}
|
|
3496
|
-
},
|
|
3497
|
-
"RecommendRule": {
|
|
3498
|
-
"type": "object",
|
|
3499
|
-
"description": "Recommend rule.",
|
|
3500
|
-
"additionalProperties": false,
|
|
3501
|
-
"properties": {
|
|
3502
|
-
"_metadata": {
|
|
3503
|
-
"title": "ruleMetadata",
|
|
3504
|
-
"type": "object",
|
|
3505
|
-
"description": "Rule metadata.",
|
|
3506
|
-
"properties": {
|
|
3507
|
-
"lastUpdate": {
|
|
3508
|
-
"$ref": "#/components/schemas/updatedAt"
|
|
3509
|
-
}
|
|
3510
|
-
}
|
|
3511
|
-
},
|
|
3512
|
-
"objectID": {
|
|
3513
|
-
"$ref": "#/components/schemas/ruleID"
|
|
3514
|
-
},
|
|
3515
|
-
"condition": {
|
|
3516
|
-
"$ref": "#/components/schemas/Condition"
|
|
3517
|
-
},
|
|
3518
|
-
"consequence": {
|
|
3519
|
-
"$ref": "#/components/schemas/Consequence"
|
|
3520
|
-
},
|
|
3521
|
-
"description": {
|
|
3522
|
-
"type": "string",
|
|
3523
|
-
"description": "Description of the rule's purpose. This can be helpful for display in the Algolia dashboard.",
|
|
3524
|
-
"example": "Boost on-sale items"
|
|
3525
|
-
},
|
|
3526
|
-
"enabled": {
|
|
3527
|
-
"type": "boolean",
|
|
3528
|
-
"default": true,
|
|
3529
|
-
"description": "Indicates whether to enable the rule. If it isn't enabled, it isn't applied at query time."
|
|
3530
|
-
},
|
|
3531
|
-
"validity": {
|
|
3532
|
-
"type": "array",
|
|
3533
|
-
"description": "Time periods when the rule is active.",
|
|
3534
|
-
"items": {
|
|
3535
|
-
"$ref": "#/components/schemas/timeRange"
|
|
3536
|
-
}
|
|
3537
|
-
}
|
|
3538
|
-
}
|
|
3539
|
-
},
|
|
3540
|
-
"taskID": {
|
|
3541
|
-
"type": "integer",
|
|
3542
|
-
"format": "int64",
|
|
3543
|
-
"example": 1514562690001,
|
|
3544
|
-
"description": "Unique identifier of a task.\n\nA successful API response means that a task was added to a queue. It might not run immediately. You can check the task's progress with the [`task` operation](#tag/Indices/operation/getTask) and this `taskID`.\n"
|
|
3545
|
-
},
|
|
3546
|
-
"deletedAt": {
|
|
3547
|
-
"type": "string",
|
|
3548
|
-
"example": "2023-06-27T14:42:38.831Z",
|
|
3549
|
-
"description": "Date and time when the object was deleted, in RFC 3339 format."
|
|
3550
|
-
},
|
|
3551
|
-
"taskStatus": {
|
|
3552
|
-
"type": "string",
|
|
3553
|
-
"enum": [
|
|
3554
|
-
"published",
|
|
3555
|
-
"notPublished"
|
|
3556
|
-
],
|
|
3557
|
-
"description": "Task status, `published` if the task is completed, `notPublished` otherwise."
|
|
3558
|
-
},
|
|
3559
|
-
"parameters_query": {
|
|
3560
|
-
"type": "string",
|
|
3561
|
-
"description": "Search query.",
|
|
3562
|
-
"default": ""
|
|
3563
|
-
},
|
|
3564
|
-
"parameters_page": {
|
|
3565
|
-
"type": "integer",
|
|
3566
|
-
"minimum": 0,
|
|
3567
|
-
"description": "Requested page of the API response.\n\nAlgolia uses `page` and `hitsPerPage` to control how search results are displayed ([paginated](https://www.algolia.com/doc/guides/building-search-ui/ui-and-ux-patterns/pagination/js/)).\n\n- `hitsPerPage`: sets the number of search results (_hits_) displayed per page.\n- `page`: specifies the page number of the search results you want to retrieve. Page numbering starts at 0, so the first page is `page=0`, the second is `page=1`, and so on.\n\nFor example, to display 10 results per page starting from the third page, set `hitsPerPage` to 10 and `page` to 2.\n"
|
|
3568
|
-
},
|
|
3569
|
-
"parameters_hitsPerPage": {
|
|
3570
|
-
"type": "integer",
|
|
3571
|
-
"default": 20,
|
|
3572
|
-
"minimum": 1,
|
|
3573
|
-
"maximum": 1000,
|
|
3574
|
-
"description": "Maximum number of hits per page.\n\nAlgolia uses `page` and `hitsPerPage` to control how search results are displayed ([paginated](https://www.algolia.com/doc/guides/building-search-ui/ui-and-ux-patterns/pagination/js/)).\n\n- `hitsPerPage`: sets the number of search results (_hits_) displayed per page.\n- `page`: specifies the page number of the search results you want to retrieve. Page numbering starts at 0, so the first page is `page=0`, the second is `page=1`, and so on.\n\nFor example, to display 10 results per page starting from the third page, set `hitsPerPage` to 10 and `page` to 2.\n"
|
|
3575
|
-
},
|
|
3576
|
-
"recommendUpdatedAtResponse": {
|
|
3577
|
-
"type": "object",
|
|
3578
|
-
"description": "Response, taskID, and update timestamp.",
|
|
3579
|
-
"additionalProperties": false,
|
|
3580
|
-
"required": [
|
|
3581
|
-
"taskID",
|
|
3582
|
-
"updatedAt"
|
|
3583
|
-
],
|
|
3584
|
-
"properties": {
|
|
3585
|
-
"taskID": {
|
|
3586
|
-
"$ref": "#/components/schemas/taskID"
|
|
3587
|
-
},
|
|
3588
|
-
"updatedAt": {
|
|
3589
|
-
"$ref": "#/components/schemas/updatedAt"
|
|
3590
|
-
}
|
|
3591
|
-
}
|
|
3592
|
-
}
|
|
3593
|
-
},
|
|
3594
|
-
"responses": {
|
|
3595
|
-
"BadRequest": {
|
|
3596
|
-
"description": "Bad request or request arguments.",
|
|
3597
|
-
"content": {
|
|
3598
|
-
"application/json": {
|
|
3599
|
-
"schema": {
|
|
3600
|
-
"$ref": "#/components/schemas/ErrorBase"
|
|
3601
|
-
}
|
|
3602
|
-
}
|
|
3603
|
-
}
|
|
3604
|
-
},
|
|
3605
|
-
"FeatureNotEnabled": {
|
|
3606
|
-
"description": "This feature is not enabled on your Algolia account.",
|
|
3607
|
-
"content": {
|
|
3608
|
-
"application/json": {
|
|
3609
|
-
"schema": {
|
|
3610
|
-
"$ref": "#/components/schemas/ErrorBase"
|
|
3611
|
-
}
|
|
3612
|
-
}
|
|
3613
|
-
}
|
|
3614
|
-
},
|
|
3615
|
-
"MethodNotAllowed": {
|
|
3616
|
-
"description": "Method not allowed with this API key.",
|
|
3617
|
-
"content": {
|
|
3618
|
-
"application/json": {
|
|
3619
|
-
"schema": {
|
|
3620
|
-
"$ref": "#/components/schemas/ErrorBase"
|
|
3621
|
-
}
|
|
3622
|
-
}
|
|
3623
|
-
}
|
|
3624
|
-
},
|
|
3625
|
-
"IndexNotFound": {
|
|
3626
|
-
"description": "Index not found.",
|
|
3627
|
-
"content": {
|
|
3628
|
-
"application/json": {
|
|
3629
|
-
"schema": {
|
|
3630
|
-
"$ref": "#/components/schemas/ErrorBase"
|
|
3631
|
-
}
|
|
3632
|
-
}
|
|
3633
|
-
}
|
|
3634
|
-
},
|
|
3635
|
-
"DeletedAt": {
|
|
3636
|
-
"description": "OK",
|
|
3637
|
-
"content": {
|
|
3638
|
-
"application/json": {
|
|
3639
|
-
"schema": {
|
|
3640
|
-
"title": "deletedAtResponse",
|
|
3641
|
-
"description": "Response, taskID, and deletion timestamp.",
|
|
3642
|
-
"additionalProperties": false,
|
|
3643
|
-
"type": "object",
|
|
3644
|
-
"required": [
|
|
3645
|
-
"taskID",
|
|
3646
|
-
"deletedAt"
|
|
3647
|
-
],
|
|
3648
|
-
"properties": {
|
|
3649
|
-
"taskID": {
|
|
3650
|
-
"$ref": "#/components/schemas/taskID"
|
|
3651
|
-
},
|
|
3652
|
-
"deletedAt": {
|
|
3653
|
-
"$ref": "#/components/schemas/deletedAt"
|
|
3654
|
-
}
|
|
3655
|
-
}
|
|
3656
|
-
}
|
|
3657
|
-
}
|
|
3658
|
-
}
|
|
3659
|
-
},
|
|
3660
|
-
"RecommendUpdatedAt": {
|
|
3661
|
-
"description": "OK",
|
|
3662
|
-
"content": {
|
|
3663
|
-
"application/json": {
|
|
3664
|
-
"schema": {
|
|
3665
|
-
"$ref": "#/components/schemas/recommendUpdatedAtResponse"
|
|
3666
|
-
}
|
|
3667
|
-
}
|
|
3668
|
-
}
|
|
3669
|
-
}
|
|
3670
|
-
}
|
|
3671
|
-
},
|
|
3672
|
-
"x-tagGroups": [
|
|
3673
|
-
{
|
|
3674
|
-
"name": "Recommend",
|
|
3675
|
-
"tags": [
|
|
3676
|
-
"recommendations",
|
|
3677
|
-
"rules"
|
|
3678
|
-
]
|
|
3679
|
-
}
|
|
3680
|
-
]
|
|
3681
|
-
}
|