Collection-Level Scoring in Typesense Multi-Search
TLDR Mile questioned the possibility of collection-level scoring in Typesense. Jason advised adjusting scores client-side, and requested Mile to create a GitHub issue to assess community interest.
Oct 09, 2023 (1 month ago)
Mile
04:21 PMmulti_search
done on several collections. I would like to know if there is any way to influence the scoring on the collection level. For example, I have 2 collections, collection A
and collection B
. If we have an exact match on Field 1
in collection A
, this should be ranked higher than an exact match on Field 1
in collection B
. Is there a way of doing a cross-collection ranking? I tried using the query_by_weights
and so far, I feel that the approach is limited. Note: we query 6-7 collections per multi-search.Jason
04:34 PMYou would have to augment the text match score you receive from each multi_search with your own logic on the client-side to weight the scores as needed based on the collection
Oct 10, 2023 (1 month ago)
Mile
09:10 AMJason
04:11 PMTypesense
Indexed 3015 threads (79% resolved)
Similar Threads
Sorting and Ranking Multi-Search across Collections
Patrick struggles with sorting and ranking multi-search results from different collections. Dima suggests creating a meta-collection, or a collection with raw and searchable fields, and managing sorting manually.
Understanding Rank Fusion Score in Typesense's Multi-Search
Ayush had queries about comparing `rank_fusion_score` across collections in Typesense's hybrid search. They were explained and clarified by Kishore Nallan on how the score works and how it could be manipulated for their use-case.
Multi-Collection Relevance Query in Typesense
Alexander inquired about querying three collections at once in Typesense. Kishore Nallan suggested federated search for the issue.