https://www.meilisearch.com/docs/reference/api/multi_search
The /multisearch (searchClient().multiSearch(...)) endpoint allows for displaying a single search result by mixing results from multiple search queries with prioritized weighting.
When a single site provides multiple types of documents with different indexes, it is reasonable for search to mix:
- Search results for the current document (high priority, main)
- Search results for other documents (low priority, supplementary)
while considering their priorities. However, the current /indexes/<index>/search (searchClient().index(index).search(...)) endpoint does not support searching across multiple indexes in this manner.
Question: how do we design the props of DocSearch(Modal) to switch from .index(...).search(...) to .multiSearch(..)?