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
|**[`offset`](/reference/api/search#offset)**| Integer |`0`| Number of documents to skip |
146
146
|**[`limit`](/reference/api/search#limit)**| Integer |`20`| Maximum number of documents returned |
147
147
|**[`hitsPerPage`](/reference/api/search#number-of-results-per-page)**| Integer |`1`| Maximum number of documents returned for a page |
148
148
|**[`page`](/reference/api/search#page)**| Integer |`1`| Request a specific page of results |
149
-
|**[`filter`](/reference/api/search#filter)**|[String](/learn/filtering_and_sorting/filter_expression_reference)|`null`| Filter queries by an attribute's value |
149
+
|**[`filter`](/reference/api/search#filter)**| String|`null`| Filter queries by an attribute's value |
150
150
|**[`facets`](/reference/api/search#facets)**| Array of strings |`null`| Display the count of matches per facet |
151
151
|**[`attributesToRetrieve`](/reference/api/search#attributes-to-retrieve)**| Array of strings |`["*"]`| Attributes to display in the returned documents |
152
152
|**[`attributesToCrop`](/reference/api/search#attributes-to-crop)**| Array of strings |`null`| Attributes whose values have to be cropped |
@@ -172,10 +172,11 @@ These options are not compatible with federated searches.
172
172
`federationOptions` must be an object. It accepts the following parameters:
173
173
174
174
-`weight`: serves as a multiplicative factor to ranking scores of search results in this specific query. If < `1.0`, the hits from this query are less likely to appear in the final results list. If > `1.0`, the hits from this query are more likely to appear in the final results list. Must be a positive floating-point number. Defaults to `1.0`
175
+
-`remote` <NoticeTagtype="experimental"label="experimental" />: indicates the remote instance where Meilisearch will perform the query. Must be a string corresponding to a [remote object](/reference/api/network). Defaults to `null`
175
176
176
177
### Response
177
178
178
-
The response to `/multi-search` queries may take two shapes: federated and non-federated.
179
+
The response to `/multi-search` queries may take different shapes depending on the type of query you're making.
179
180
180
181
#### Non-federated multi-search requests
181
182
@@ -187,7 +188,7 @@ Each search result object is composed of the following fields:
Copy file name to clipboardExpand all lines: reference/api/network.mdx
+18-7Lines changed: 18 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -52,7 +52,7 @@ This feature is not available for Meilisearch Cloud users.
52
52
**Default value**: `{}`<br />
53
53
**Description**: An object containing `remote` objects. The key of each remote object indicates the name of the remote instance
54
54
55
-
### The remote object
55
+
####The remote object
56
56
57
57
```json
58
58
"ms-00": {
@@ -61,15 +61,15 @@ This feature is not available for Meilisearch Cloud users.
61
61
}
62
62
```
63
63
64
-
### `url`
64
+
#####`url`
65
65
66
66
**Type**: String<br />
67
67
**Default value**: `null`<br />
68
68
**Description**: URL indicating the address of a Meilisearch instance. This URL does not need to be public, but must be accessible to all instances in the network. Required.
69
69
70
-
### `searchApiKey`
70
+
#####`searchApiKey`
71
71
72
-
**Type**: Stringf<br />
72
+
**Type**: String<br />
73
73
**Default value**: `null`<br />
74
74
**Description**: An API key with search permissions
75
75
@@ -109,7 +109,7 @@ Update the `self` and `remotes` fields of the network object.
109
109
110
110
Updates to the network object are **partial**. Only provide the fields you intend to update. Fields not present in the payload will remain unchanged.
111
111
112
-
To reset `self` and `remotes` to their original value, set them to `null`. To remov a single `remote` from your network, set the value of its name to `null`.
112
+
To reset `self` and `remotes` to their original value, set them to `null`. To remove a single `remote` from your network, set the value of its name to `null`.
113
113
114
114
### Body
115
115
@@ -125,6 +125,17 @@ To reset `self` and `remotes` to their original value, set them to `null`. To re
Copy file name to clipboardExpand all lines: reference/errors/error_codes.mdx
+68-10Lines changed: 68 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -43,6 +43,10 @@ An error occurred during the dump creation process. The task was aborted.
43
43
44
44
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`.
45
45
46
+
## `feature_not_enabled`
47
+
48
+
Trying to perform one of the actions guarded by `proxy_search` without enabling that feature first. Find the list above: [New experimental feature `proxySearch`](https://www.notion.so/New-experimental-feature-proxySearch-1894b06b651f809997abd5d66440cfc6?pvs=21)
49
+
46
50
## `immutable_api_key_actions`
47
51
48
52
The [`actions`](/reference/api/keys#actions) field of an API key cannot be modified.
@@ -213,6 +217,10 @@ A multi-search query includes `federationOptions` but the top-level `federation`
213
217
214
218
A multi-search query contains `page`, `hitsPerPage`, `limit` or `offset`, but the top-level federation object is not `null`.
215
219
220
+
## `invalid_multi_search_query_position`
221
+
222
+
`federationOptions.queryPosition` is not a positive integer.
223
+
216
224
## `invalid_multi_search_weight`
217
225
218
226
A multi-search query contains a negative value for `federated.weight`.
@@ -249,6 +257,26 @@ Two or more indexes have a different `faceting.sortFacetValuesBy` for the same r
249
257
250
258
`facetsByIndex` is not an object or contains unknown fields.
251
259
260
+
## `invalid_multi_search_remote`
261
+
262
+
`federationOptions.remote` is not `network.self` and is not a key in `network.remotes`.
263
+
264
+
## `invalid_network_self`
265
+
266
+
The [network object](/reference/api/network#the-network-object) contains a `self` that is not a string or `null`.
267
+
268
+
## `invalid_network_remotes`
269
+
270
+
The [network object](/reference/api/network#the-network-object) contains a `remotes` that is not an object or `null`.
271
+
272
+
## `invalid_network_url`
273
+
274
+
One of the remotes in the [network object](/reference/api/network#the-network-object) contains a `url` that is not a string.
275
+
276
+
## `invalid_network_search_api_key`
277
+
278
+
One of the remotes in the [network object](/reference/api/network#the-network-object) contains a `searchApiKey` that is not a string or `null`.
279
+
252
280
## `invalid_search_attributes_to_crop`
253
281
254
282
The [`attributesToCrop`](/reference/api/search#attributes-to-crop) parameter is invalid. It should be an array of strings, a string, or set to `null`.
@@ -411,41 +439,41 @@ This error occurs if:
411
439
- The [`minWordSizeForTypos`](/reference/api/settings#typo-tolerance-object) field is invalid. It should either be an integer or set to `null`
412
440
- The value of either [`oneTypo`](/reference/api/settings#typo-tolerance-object) or [`twoTypos`](/reference/api/settings#typo-tolerance-object) is invalid. It should either be an integer or set to `null`
413
441
414
-
###`invalid_similar_id`
442
+
## `invalid_similar_id`
415
443
416
444
The provided target document identifier is invalid. A document identifier can be of type integer or string, only composed of alphanumeric characters (a-z A-Z 0-9), hyphens (-) and underscores (_).
417
445
418
-
###`not_found_similar_id`
446
+
## `not_found_similar_id`
419
447
420
448
Meilisearch could not find the target document. Make sure your target document identifier corresponds to a document in your index.
421
449
422
-
###`invalid_similar_attributes_to_retrieve`
450
+
## `invalid_similar_attributes_to_retrieve`
423
451
424
452
[`attributesToRetrieve`](/reference/api/search#attributes-to-retrieve) is invalid. It should be an array of strings, a string, or set to null.
425
453
426
-
###`invalid_similar_filter`
454
+
## `invalid_similar_filter`
427
455
428
456
[`filter`](/reference/api/search#filter) is invalid or contains a filter expression with a missing or invalid operator. Filter expressions must be a string, array of strings, or array of array of strings for the POST endpoint. It must be a string for the GET endpoint.
429
457
430
458
Meilisearch also throws this error if the attribute used for filtering is not defined in the `filterableAttributes` list.
431
459
432
-
###`invalid_similar_limit`
460
+
## `invalid_similar_limit`
433
461
434
462
[`limit`](/reference/api/search#limit) is invalid. It should be an integer.
435
463
436
-
###`invalid_similar_offset`
464
+
## `invalid_similar_offset`
437
465
438
466
[`offset`](/reference/api/search#offset) is invalid. It should be an integer.
439
467
440
-
###`invalid_similar_show_ranking_score`
468
+
## `invalid_similar_show_ranking_score`
441
469
442
470
[`ranking_score`](/reference/api/search#ranking-score) is invalid. It should be a boolean.
443
471
444
-
###`invalid_similar_show_ranking_score_details`
472
+
## `invalid_similar_show_ranking_score_details`
445
473
446
474
[`ranking_score_details`](/reference/api/search#ranking-score-details) is invalid. It should be a boolean.
447
475
448
-
###`invalid_embedder`
476
+
## `invalid_embedder`
449
477
450
478
[`embedder`](/reference/api/search#hybrid-search-experimental) is invalid. It should be a string corresponding to the name of a configured embedder.
451
479
@@ -575,6 +603,10 @@ The [`facetName`](/reference/api/facet_search#body) parameter is required.
575
603
576
604
You need to set a master key before you can access the `/keys` route. Read more about setting a master key at launch in our [security tutorial](/learn/security/basic_security).
577
605
606
+
## `missing_network_url`
607
+
608
+
One of the remotes in the [network object](/reference/api/network#the-network-object) does not contain the `url` field.
609
+
578
610
## `missing_payload`
579
611
580
612
The Content-Type header was specified, but no request body was sent to the server or the request body is empty.
@@ -618,6 +650,32 @@ You have reached the limit of concurrent search requests. You may configure it b
618
650
619
651
The document exists in store, but there was an error retrieving it. This probably comes from an inconsistent state in the database.
620
652
621
-
###`vector_embedding_error`
653
+
## `vector_embedding_error`
622
654
623
655
Error while generating embeddings.
656
+
657
+
## Remote federated search errors
658
+
659
+
### `remote_bad_response`
660
+
661
+
The remote instance answered with a response that this instance could not use as a federated search response.
662
+
663
+
### `remote_bad_request`
664
+
665
+
The remote instance answered with `400 BAD REQUEST`.
666
+
667
+
### `remote_could_not_send_request`
668
+
669
+
There was an error while sending the remote federated search request.
670
+
671
+
### `remote_invalid_api_key`
672
+
673
+
The remote instance answered with `403 FORBIDDEN` or `401 UNAUTHORIZED` to this instance’s request. The configured search API key is either missing, invalid, or lacks the required search permission.
674
+
675
+
### `remote_remote_error`
676
+
677
+
The remote instance answered with `500 INTERNAL ERROR`.
0 commit comments