Combining and Sorting Search Results from Two Collections
TLDR Toyin asked about combining and sorting search results from two collections. Kishore Nallan confirmed that text_match
could be used for this purpose.
Powered by Struct AI
3
30mo
Solved
Jun 12, 2021 (30 months ago)
Toyin
Toyin
07:31 AMhi, i've got a question about "_text_match" and trying to combine search results from two collections that are in a federated search.
i'm doing a federated search of two different collections and i get the data back listed as results from collection1 and then results from collection2. i'm trying to avoid combining them into one collection at the moment, so i thought maybe if i put the results together, i could get the value of _text_match from all the results and programmatically sort the results of the federated search that way
i'm doing a federated search of two different collections and i get the data back listed as results from collection1 and then results from collection2. i'm trying to avoid combining them into one collection at the moment, so i thought maybe if i put the results together, i could get the value of _text_match from all the results and programmatically sort the results of the federated search that way
Kishore Nallan
Kishore Nallan
07:50 AMYes
text_match
is exposed as a field in the results.Toyin
Toyin
09:38 PMThanks!
Typesense
Lightning-fast, open source search engine for everyone | Knowledge Base powered by Struct.AI
Indexed 2776 threads (79% resolved)
Similar Threads
Collating Search Results from Different Collections.
Patrick inquired about collating search results on different collections based on text_match value. Jason confirmed it's possible, but must be done client-side.
3
15mo
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
12mo
Solved
Merging Federated Search Results in Typesense
Michael asked how to merge federated search results. Jason explained it should be done on the client-side, using the text match score.
3
2mo
Solved