Skip to content

Commit 24c1f46

Browse files
Apply suggestions from code review
Co-authored-by: Louis Dureuil <[email protected]>
1 parent d6233a5 commit 24c1f46

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

.code-samples.meilisearch.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1454,12 +1454,16 @@ multi_search_remote_federated_1: |-
14541454
{
14551455
"indexUid": "movies",
14561456
"q": "batman",
1457-
"remote": "ms-00"
1457+
"federationOptions": {
1458+
"remote": "ms-00"
1459+
}
14581460
},
14591461
{
14601462
"indexUid": "movies",
14611463
"q": "batman",
1462-
"remote": "ms-01"
1464+
"federationOptions": {
1465+
"remote": "ms-01"
1466+
}
14631467
}
14641468
]
14651469
}'

learn/multi_search/implement_sharding.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: Implement sharding with remote federated search — Meilisearch documentation
3-
description: This guide walks you through implemnting a sharding strategy by activating the `/network` route, configuring the network object, and performing remote federated searches.
3+
description: This guide walks you through implementing a sharding strategy by activating the `/network` route, configuring the network object, and performing remote federated searches.
44
---
55

66
# Implement sharding with remote federated search <NoticeTag type="experimental" label="experimental" />
@@ -80,7 +80,7 @@ curl \
8080
-H 'Content-Type: application/json' \
8181
--data-binary '{
8282
"self": "REMOTE_NAME_1"
83-
}
83+
}'
8484
```
8585

8686
Meilisearch processes searches on the remote that corresponds to `self` locally instead of making a remote request.

reference/api/multi_search.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ Each result in the `hits` array contains an additional `_federation` field with
224224
| :-------------------------- | :--------------- | :--------------------------------------------------------------------------------- |
225225
| **`indexUid`** | String | Index of origin for this document |
226226
| **`queriesPosition`** | Number | Array index number of the query in the request's `queries` array |
227-
| **`remote`** | String | String indicating the queried remote instance |
227+
| **`remote`** | String | Remote instance of origin for this document
228228
| **`weightedRankingScore`** | Number | The product of the _rankingScore of the hit and the weight of the query of origin. |
229229

230230
### Example

0 commit comments

Comments
 (0)