Skip to content

Commit 91794ec

Browse files
committed
Add remote federated search code sample
1 parent 2be7f89 commit 91794ec

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.code-samples.meilisearch.yaml

+20
Original file line numberDiff line numberDiff line change
@@ -721,6 +721,26 @@ multi_search_federated_1: |-
721721
queries: [{ index_uid: 'movies', q: 'batman' }, { index_uid: 'comics', q: 'batman' }],
722722
federation: {}
723723
)
724+
multi_search_remote_federated_1: |-
725+
client.multi_search(
726+
federation: {},
727+
queries: [
728+
{
729+
index_uid: 'movies',
730+
q: 'batman',
731+
federation_options: {
732+
remote: 'ms-00'
733+
}
734+
},
735+
{
736+
index_uid: 'movies',
737+
q: 'batman',
738+
federation_options: {
739+
remote: 'ms-01'
740+
}
741+
}
742+
]
743+
)
724744
get_network_1: |-
725745
client.network
726746
update_network_1: |-

0 commit comments

Comments
 (0)