Merging Federated Search Results in Typesense
TLDR Michael asked how to merge federated search results. Jason explained it should be done on the client-side, using the text match score.
Powered by Struct AI

3
2mo
Solved
Jul 14, 2023 (2 months ago)
Michael
Michael
11:49 AMIs there a simple way to merge the resuts of a federated search, rather than receiving them as separate objects?
Jason
Jason
03:48 PMNot on the Typesense server side. But you can do this on the client-side by aggregating using the text match score inside each hit - they’re comparable across collections
Michael
Michael
04:11 PMperfect. thanks.

Typesense
Lightning-fast, open source search engine for everyone | Knowledge Base powered by Struct.AI
Indexed 2764 threads (79% resolved)
Similar Threads
Combining and Sorting Search Results from Two Collections
Toyin asked about combining and sorting search results from two collections. Kishore Nallan confirmed that `text_match` could be used for this purpose.
3
27mo
Solved
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
11mo
Solved
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
6mo
Solved