Multi-Search Query Across Different Collections
TLDR Ahmad inquires about performing a multisearch call across different databases. Kishore Nallan provides an example but Edson adds that it's an issue when field names differ per collection.
1
Jan 03, 2022 (24 months ago)
Ahmad
07:22 AMUser: { name: "string" }, Book: { author: "string"}.
I want to search by
name
in User
and author
in Book
using multi search in 1 query. Is it possible and how ?Kishore Nallan
07:25 AMKishore Nallan
07:27 AM1
Jan 26, 2022 (24 months ago)
Edson
09:55 PMin my concrete use case i wish i could "query_by" 'name', in the brands collection, and by full_name in my 'cars' collection
Typesense
Indexed 3005 threads (79% resolved)
Similar Threads
Searching Across Multiple Collections with the Same Query
Tom was curious about executing a single query across multiple collections. John provided a solution through a link to the multi-search function of typesense.org.
Multi-Collection Relevance Query in Typesense
Alexander inquired about querying three collections at once in Typesense. Kishore Nallan suggested federated search for the issue.
Multiple Filters and JSON Requests in Typesense
Manish asked about multiple filter_by arguments, JSON input, and using multisearch. Jason offered typesense documentation links, examples, and how to use JSON formatted requests with multisearch. Ed shared a similar use case.