Skip to content

Support /multi-search (.multiSearch(...)) to allow cross-index search #210

@tats-u

Description

@tats-u

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(..)?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions