You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 21, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: open-api.yaml
+173-1Lines changed: 173 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -450,10 +450,28 @@ components:
450
450
type: integer
451
451
default: 9
452
452
nullable: false
453
+
pagination:
454
+
type: object
455
+
description: Customize pagination settings
456
+
properties:
457
+
maxTotalHits:
458
+
description: Define the maximum number of documents reachable for a search request. It means that with the default value of `1000`, it is not possible to see the `1001`st result for a **search query**.
459
+
type: integer
460
+
default: 1000
461
+
nullable: false
462
+
faceting:
463
+
type: object
464
+
description: Customize faceting settings
465
+
properties:
466
+
maxValuesPerFacet:
467
+
description: Define maximum number of value returned for a facet for a **search query**. It means that with the default value of `100`, it is not possible to have `101` different colors if the `color`` field is defined as a facet at search time.
468
+
type: integer
469
+
default: 100
470
+
nullable: false
453
471
filterableAttributes:
454
472
type: array
455
473
description: |
456
-
Attributes to use for facetting and filtering. See [Filtering and Faceted Search](https://docs.meilisearch.com/reference/features/filtering_and_faceted_search.html).
474
+
Attributes to use for faceting and filtering. See [Filtering and Faceted Search](https://docs.meilisearch.com/reference/features/filtering_and_faceted_search.html).
457
475
items:
458
476
type: string
459
477
example:
@@ -1723,6 +1741,10 @@ paths:
1723
1741
$ref: '#/components/schemas/sortableAttributes'
1724
1742
typoTolerance:
1725
1743
$ref: '#/components/schemas/typoTolerance'
1744
+
pagination:
1745
+
$ref: '#/components/schemas/pagination'
1746
+
faceting:
1747
+
$ref: '#/components/schemas/faceting'
1726
1748
required:
1727
1749
- rankingRules
1728
1750
- distinctAttribute
@@ -1733,6 +1755,8 @@ paths:
1733
1755
- filterableAttributes
1734
1756
- sortableAttributes
1735
1757
- typoTolerance
1758
+
- pagination
1759
+
- faceting
1736
1760
examples:
1737
1761
Example:
1738
1762
value:
@@ -1784,6 +1808,10 @@ paths:
1784
1808
minWordSizeForTypos:
1785
1809
oneTypo: 4
1786
1810
twoTypos: 8
1811
+
pagination:
1812
+
maxTotalHits: 1000
1813
+
faceting:
1814
+
maxValuesPerFacet: 100
1787
1815
'401':
1788
1816
$ref: '#/components/responses/401'
1789
1817
'404':
@@ -1829,6 +1857,10 @@ paths:
1829
1857
$ref: '#/components/schemas/sortableAttributes'
1830
1858
typoTolerance:
1831
1859
$ref: '#/components/schemas/typoTolerance'
1860
+
pagination:
1861
+
$ref: '#/components/schemas/pagination'
1862
+
faceting:
1863
+
$ref: '#/components/schemas/faceting'
1832
1864
examples:
1833
1865
Example:
1834
1866
value:
@@ -1875,6 +1907,10 @@ paths:
1875
1907
minWordSizeForTypos:
1876
1908
oneTypo: 4
1877
1909
twoTypos: 8
1910
+
pagination:
1911
+
maxTotalHits: 1000
1912
+
faceting:
1913
+
maxValuesPerFacet: 100
1878
1914
responses:
1879
1915
'202':
1880
1916
$ref: '#/components/responses/202'
@@ -2261,6 +2297,142 @@ paths:
2261
2297
description: Not Found
2262
2298
parameters:
2263
2299
- $ref: '#/components/parameters/indexUid'
2300
+
'/indexes/{indexUid}/settings/pagination':
2301
+
get:
2302
+
operationId: indexes.settings.pagination.get
2303
+
summary: Get pagination configuration
2304
+
description: |
2305
+
Get the pagination configuration of an index.
2306
+
tags:
2307
+
- Settings
2308
+
security:
2309
+
- apiKey: []
2310
+
responses:
2311
+
'200':
2312
+
description: Ok
2313
+
content:
2314
+
application/json:
2315
+
schema:
2316
+
$ref: '#/components/schemas/pagination'
2317
+
'401':
2318
+
$ref: '#/components/responses/401'
2319
+
'404':
2320
+
description: Not Found
2321
+
patch:
2322
+
operationId: indexes.settings.pagination.update
2323
+
summary: Update pagination settings
2324
+
description: |
2325
+
Update the pagination configuration of an index.
2326
+
2327
+
> info
2328
+
> If the provided index does not exist, it will be created.
2329
+
tags:
2330
+
- Settings
2331
+
security:
2332
+
- apiKey: []
2333
+
requestBody:
2334
+
required: true
2335
+
content:
2336
+
application/json:
2337
+
schema:
2338
+
$ref: '#/components/schemas/pagination'
2339
+
examples: {}
2340
+
description: ''
2341
+
responses:
2342
+
'202':
2343
+
$ref: '#/components/responses/202'
2344
+
'401':
2345
+
$ref: '#/components/responses/401'
2346
+
'404':
2347
+
description: Not Found
2348
+
parameters:
2349
+
- $ref: '#/components/parameters/Content-Type'
2350
+
delete:
2351
+
operationId: indexes.settings.pagination.reset
2352
+
summary: Reset pagination settings to the default configuration
2353
+
description: |
2354
+
Reset the pagination settings of an index to its default configuration.
2355
+
tags:
2356
+
- Settings
2357
+
security:
2358
+
- apiKey: []
2359
+
responses:
2360
+
'202':
2361
+
$ref: '#/components/responses/202'
2362
+
'401':
2363
+
$ref: '#/components/responses/401'
2364
+
'404':
2365
+
description: Not Found
2366
+
parameters:
2367
+
- $ref: '#/components/parameters/indexUid'
2368
+
'/indexes/{indexUid}/settings/faceting':
2369
+
get:
2370
+
operationId: indexes.settings.faceting.get
2371
+
summary: Get faceting configuration
2372
+
description: |
2373
+
Get the faceting configuration of an index.
2374
+
tags:
2375
+
- Settings
2376
+
security:
2377
+
- apiKey: []
2378
+
responses:
2379
+
'200':
2380
+
description: Ok
2381
+
content:
2382
+
application/json:
2383
+
schema:
2384
+
$ref: '#/components/schemas/faceting'
2385
+
'401':
2386
+
$ref: '#/components/responses/401'
2387
+
'404':
2388
+
description: Not Found
2389
+
patch:
2390
+
operationId: indexes.settings.faceting.update
2391
+
summary: Update faceting settings
2392
+
description: |
2393
+
Update the typo tolerance faceting of an index.
2394
+
2395
+
> info
2396
+
> If the provided index does not exist, it will be created.
2397
+
tags:
2398
+
- Settings
2399
+
security:
2400
+
- apiKey: []
2401
+
requestBody:
2402
+
required: true
2403
+
content:
2404
+
application/json:
2405
+
schema:
2406
+
$ref: '#/components/schemas/faceting'
2407
+
examples: {}
2408
+
description: ''
2409
+
responses:
2410
+
'202':
2411
+
$ref: '#/components/responses/202'
2412
+
'401':
2413
+
$ref: '#/components/responses/401'
2414
+
'404':
2415
+
description: Not Found
2416
+
parameters:
2417
+
- $ref: '#/components/parameters/Content-Type'
2418
+
delete:
2419
+
operationId: indexes.settings.faceting.reset
2420
+
summary: Reset faceting settings to the default configuration
2421
+
description: |
2422
+
Reset the faceting settings of an index to its default configuration.
Copy file name to clipboardExpand all lines: text/0034-telemetry-policies.md
+19-1Lines changed: 19 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -54,6 +54,8 @@ The collected data is sent to [Segment](https://segment.com/). Segment is a plat
54
54
| FilterableAttributes Updated | Occurs when filterable attributes are updated via `POST` - `/indexes/:indexUid/settings/filterable-attributes`. |
55
55
| SortableAttributes Updated | Occurs when sortable attributes are updated via `POST` - `/indexes/:indexUid/settings/sortable-attributes`. |
56
56
| TypoTolerance Updated | Occurs when typo tolerance settings are updated via `POST` - `/indexes/:indexUid/settings/typo-tolerance`. |
57
+
| Pagination Updated | Occurs when pagination settings are updated via `PATCH` — `/indexes/:indexUid/settings/pagination`. |
58
+
| Faceting Updated | Occurs when faceting settings are updated via `PATCH` — `/indexes/:indexUid/settings/faceting`. |
57
59
| Dump Created | Occurs when a dump is created via `POST` - `/dumps`. |
58
60
| Tasks Seen | Occurs when tasks are fetched globally via `GET` - `/tasks`. |
59
61
@@ -128,6 +130,8 @@ The collected data is sent to [Segment](https://segment.com/). Segment is a plat
128
130
|`typo_tolerance.disable_on_words`|`true` if at least one value is defined |`false`|`Settings Updated`, `TypoTolerance Updated`|
129
131
|`typo_tolerance.min_word_size_for_typos.one_typo`| The defined value for `minWordSizeForTypos.oneTypo` property |`5`|`Settings Updated`, `TypoTolerance Updated`|
130
132
|`typo_tolerance.min_word_size_for_typos.two_typos`| The defined value for `minWordSizeForTypos.twoTypos` property |`9`|`Settings Updated`, `TypoTolerance Updated`|
133
+
|`pagination.max_total_hits`| The defined value for `pagination.maxTotalHits` property |`1000`|`Settings Updated`, `Pagination Updated`|
134
+
|`faceting.max_values_per_facet`| The defined value for `faceting.maxValuesPerFacet` property |`100`|`Settings Updated`, `Faceting Updated`|
131
135
|`per_task_uid`|`true` if an uid is used to fetch a particular task resource, otherwise `false`| true |`Tasks Seen`|
132
136
|`filtered_by_index_uid`|`true` if `GET /tasks` endpoint is filered by `indexUid`, otherwise `false`| false |`Tasks Seen`|
133
137
|`filtered_by_type`|`true` if `GET /tasks` endpoint is filered by `type`, otherwise `false`| false |`Tasks Seen`|
@@ -311,6 +315,8 @@ This property allows us to gather essential information to better understand on
311
315
| typo_tolerance.disable_on_words |`true` if at least one value is defined for `disableOnWords` property. |`false`|
312
316
| typo_tolerance.min_word_size_for_typos.one_typo | The defined value for `minWordSizeForTypos.oneTypo` property. |`5`|
313
317
| typo_tolerance.min_word_size_for_typos.two_typos | The defined value for `minWordSizeForTypos.twoTypos` property. |`9`|
318
+
| pagination.max_total_hits | The defined value for `pagination.maxTotalHits` property |`1000`|
319
+
| faceting.max_values_per_facet | The defined value for `faceting.maxValuesPerFacet` property |`100`|
314
320
315
321
---
316
322
@@ -352,12 +358,24 @@ This property allows us to gather essential information to better understand on
352
358
353
359
| Property name | Description | Example |
354
360
|---------------|-------------|---------|
355
-
| typo_tolerance.enabled | Whether the typo tolerance is enable.d|`true`|
361
+
| typo_tolerance.enabled | Whether the typo tolerance is enabled|`true`|
356
362
| typo_tolerance.disable_on_attributes |`true` if at least one value is defined for `disableOnAttributes` property. |`false`|
357
363
| typo_tolerance.disable_on_words |`true` if at least one value is defined for `disableOnWords` property. |`false`|
358
364
| typo_tolerance.min_word_size_for_typos.one_typo | The defined value for `minWordSizeForTypos.oneTypo` property. |`5`|
359
365
| typo_tolerance.min_word_size_for_typos.two_typos | The defined value for `minWordSizeForTypos.twoTypos` property. |`9`|
360
366
367
+
## `Pagination Updated`
368
+
369
+
| Property name | Description | Example |
370
+
|---------------|-------------|---------|
371
+
| pagination.max_total_hits | The defined value for `maxTotalHits` property |`1000`|
372
+
373
+
## `Faceting Updated`
374
+
375
+
| Property name | Description | Example |
376
+
|---------------|-------------|---------|
377
+
| faceting.max_values_per_facet | The defined value for `maxValuesPerFacet` property |`100`|
Copy file name to clipboardExpand all lines: text/0123-settings-api.md
+8-2Lines changed: 8 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,6 +22,8 @@ N/A
22
22
|[synonyms](0123-synonyms-setting-api.md)|`synonyms` sub-resource API endpoints definition |
23
23
|[distinct-attribute](0123-distinct-attribute-setting-api.md)|`distinctAttribute` sub-resource API endpoints definition |
24
24
|[typo-tolerance](0117-typo-tolerance-setting-api.md)|`typoTolerance` sub-resource API endpoints definition |
25
+
|[pagination](157-pagination-setting-api.md)|`pagination` sub-resource API endpoints definition |
26
+
|[faceting](157-faceting-setting-api.md)|`faceting` sub-resource API endpoints definition |
25
27
26
28
Each setting is exposed as a sub-resource of the `indexes/:index_uid/settings` endpoints. e.g. The ranking rules setting of a Meilisearch index is exposed at `indexes/:index_uid/settings/ranking-rules`.
27
29
@@ -47,7 +49,9 @@ Fetch the settings of a Meilisearch index.
47
49
|`stopWords`| Array of String | true |
48
50
|`synonyms`| Object | true |
49
51
|`distinctAttribute`| String / `null`| true |
50
-
|`typo`| Object | true |
52
+
|`typoTolerance`| Object | true |
53
+
|`pagination`| Object | true |
54
+
|`faceting`| Object | true |
51
55
52
56
The attributes ordering in the response payload is equivalent to the order described in the table above.
53
57
@@ -71,7 +75,9 @@ Modify the settings of a Meilisearch index.
0 commit comments