Multi-Collection Relevance Query in Typesense
TLDR Alexander inquired about querying three collections at once in Typesense. Kishore Nallan suggested federated search for the issue.
Powered by Struct AI
1
3
31mo
Jul 06, 2021 (31 months ago)
Alexander
Alexander
11:35 AMHi I have three collections each describing a slightly unique document structure. Is it possible with one query to the server to return the top 10 most relevant results across those three collections?
Kishore Nallan
Kishore Nallan
11:36 AMYes, please look at federated search: https://typesense.org/docs/0.20.0/api/documents.html#federated-multi-search
Alexander
Alexander
12:00 PMThanks 👍
1
Typesense
Lightning-fast, open source search engine for everyone | Knowledge Base powered by Struct.AI
Indexed 3015 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.
3
14mo
Consolidating Multiple Collection Queries in Typesense
Cooper asked about consolidating queries from multiple collections, while Jason suggested client-side aggregation. Cooper ended up using nested objects to achieve the desired result.
4
9mo
Redesigning Global Search Using Typesense: Single or Multiple Documents?
satish queries about the best typesense document structure for global search. Jason advises using multiple collections and multi-search, assuring it's more efficient but suggests benchmarking with their data.
6
21mo