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
|**[`proximityPrecision`](#proximity-precision)**| String |`"byWord"`| Precision level when calculating the proximity ranking rule |
166
+
|**[`facetSearch`](#facet-search)**| Boolean |`true`| Enable or disable [facet search](/reference/api/facet_search) functionality |
167
+
|**[`prefixSearch`](#prefix-search)**| String |`"indexingTime"`| When Meilisearch should return results only matching the beginning of query |
162
168
|**[`rankingRules`](#ranking-rules)**| Array of strings |`["words",`<br />`"typo",`<br />`"proximity",`<br />`"attribute",`<br />`"sort",`<br />`"exactness"]`| List of ranking rules in order of importance |
163
169
|**[`searchableAttributes`](#searchable-attributes)**| Array of strings | All attributes: `["*"]`| Fields in which to search for matching query words sorted by order of importance |
164
170
|**[`searchCutoffMs`](#search-cutoff)**| Integer |`null`, or 1500ms | Maximum duration of a search query |
@@ -1115,6 +1121,8 @@ You can use the returned `taskUid` to get more details on [the status of the tas
Reset an index's proximity precision setting to its default value.
1119
1127
1120
1128
#### Path parameters
@@ -1141,6 +1149,201 @@ Reset an index's proximity precision setting to its default value.
1141
1149
1142
1150
You can use the returned `taskUid` to get more details on [the status of the task](/reference/api/tasks#get-one-task).
1143
1151
1152
+
## Facet search
1153
+
1154
+
Processing filterable attributes for facet search is a resource-intensive operation. This feature is enabled by default, but disabling it may speed up indexing.
1155
+
1156
+
`facetSearch` accepts a single Boolean value. If set to `false`, it disables facet search for the whole index. Meilisearch returns an error if you try to access the `/facet-search` endpoint when facet search is disabled.
|**`index_uid`** * | String |[`uid`](/learn/getting_started/indexes#index-uid) of the requested index |
1229
+
1230
+
#### Example
1231
+
1232
+
<CodeSamplesid="reset_facet_search_settings_1" />
1233
+
1234
+
##### Response: `202 Accepted`
1235
+
1236
+
```json
1237
+
{
1238
+
"taskUid": 1,
1239
+
"indexUid": "INDEX_UID",
1240
+
"status": "enqueued",
1241
+
"type": "settingsUpdate",
1242
+
"enqueuedAt": "2024-07-19T22:35:33.723983Z"
1243
+
}
1244
+
```
1245
+
1246
+
Use the returned `taskUid` to get more details on [the status of the task](/reference/api/tasks#get-one-task).
1247
+
1248
+
## Prefix search
1249
+
1250
+
Prefix search is the process through which Meilisearch matches documents that begin with a specific query term, instead of only exact matches. This is a resource-intensive operation that happens during indexing by default.
1251
+
1252
+
Use `prefixSearch` to change how prefix search works. It accepts one of the following strings:
1253
+
1254
+
-`"indexingTime"`: calculate prefix search during indexing. This is the default behavior
1255
+
-`"disabled"`: do not calculate prefix search. May speed up indexing, but will severely impact search result relevancy
|**`index_uid`** * | String |[`uid`](/learn/getting_started/indexes#index-uid) of the requested index |
1328
+
1329
+
#### Example
1330
+
1331
+
<CodeSamplesid="reset_facet_search_settings_1" />
1332
+
1333
+
##### Response: `202 Accepted`
1334
+
1335
+
```json
1336
+
{
1337
+
"taskUid": 1,
1338
+
"indexUid": "INDEX_UID",
1339
+
"status": "enqueued",
1340
+
"type": "settingsUpdate",
1341
+
"enqueuedAt": "2024-07-19T22:35:33.723983Z"
1342
+
}
1343
+
```
1344
+
1345
+
Use the returned `taskUid` to get more details on [the status of the task](/reference/api/tasks#get-one-task).
1346
+
1144
1347
## Ranking rules
1145
1348
1146
1349
Ranking rules are built-in rules that rank search results according to certain criteria. They are applied in the same order in which they appear in the `rankingRules` array.
Copy file name to clipboardExpand all lines: reference/errors/error_codes.mdx
+13-1Lines changed: 13 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -35,6 +35,10 @@ The requested document can't be retrieved. Either it doesn't exist, or the datab
35
35
36
36
An error occurred during the dump creation process. The task was aborted.
37
37
38
+
## `facet_search_disabled`
39
+
40
+
The [`/facet-search`](/reference/api/facet_search) route has been queried while [the `facetSearch` index setting](/reference/api/settings#facet-search) is set to `false`.
41
+
38
42
## `immutable_api_key_actions`
39
43
40
44
The [`actions`](/reference/api/keys#actions) field of an API key cannot be modified.
@@ -93,7 +97,7 @@ The requested index already has a primary key that [cannot be changed](/learn/ge
93
97
94
98
## `internal`
95
99
96
-
Meilisearch experienced an internal error. Check the error message, and [open an issue](https://github.com/meilisearch/meilisearch/issues/new?assignees=&labels=&template=bug_report&title=) if necessary.
100
+
Meilisearch experienced an internal error. Check the error message, and [open an issue](https://github.com/meilisearch/meilisearch/issues/new?assignees=&labels=&template=bug_report&title=) if necessary.
97
101
98
102
## `invalid_api_key`
99
103
@@ -296,6 +300,10 @@ The [`limit`](/reference/api/search#limit) parameter is invalid. It should be an
296
300
297
301
The [`locales`](/reference/api/search#query-locales) parameter is invalid.
298
302
303
+
## `invalid_settings_facet_search`
304
+
305
+
The [`facetSearch`](/reference/api/settings#facet-search) index setting value is invalid.
306
+
299
307
## `invalid_settings_localized_attributes`
300
308
301
309
The [`localizedAttributes`](/reference/api/settings#localized-attributes) index setting value is invalid.
@@ -308,6 +316,10 @@ The [`matchingStrategy`](/reference/api/search#matching-strategy) parameter is i
308
316
309
317
The [`offset`](/reference/api/search#offset) parameter is invalid. It should be an integer.
310
318
319
+
## `invalid_settings_prefix_search`
320
+
321
+
The [`prefixSearch`](/reference/api/settings#prefix-search) index setting value is invalid.
322
+
311
323
## `invalid_search_page`
312
324
313
325
The [`page`](/reference/api/search#page) parameter is invalid. It should be an integer.
0 commit comments