Comparing Text Match Scores Across Separate Collections
TLDR Maximilian inquired about comparing text matching scores between collections. Kishore Nallan explained that scores are based on string similarity. They acknowledged an issue with scoring inflation and are working on a solution.
Mar 30, 2022 (19 months ago)
Maximilian
09:20 AMThanks
Kishore Nallan
09:37 AMKishore Nallan
09:38 AMMaximilian
09:41 AMKishore Nallan
10:11 AMMaximilian
10:17 AMWhen there are more words, it would be very useful to know which word matched what.
If I search for a category and a brand, it would be useful to know if a word is matched as a category or as a brand. At the moment we have the snippet that shows what was matched, but if the word is different (like plurals or a typo) it's impossible to get the matching word.
Maximilian
10:19 AMsmartphone => category field
apple => brand
iphone => product name
Kishore Nallan
10:40 AMMaximilian
10:43 AMTypesense
Indexed 2786 threads (79% resolved)
Similar Threads
Issues With `text_match` Scoring for Search Queries in Typesense
Colin encountered issues with the `text_match` scoring on Typesense v0.23.1. Jason and Kishore Nallan identified a potential issue with numeric overflow in the text match score and applied an unverified patch. The final resolution is unclear.
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.
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.
Discussing Schema Design Best Practices and Splitting Collections
Janaka inquired about resources for schema design and collection splitting. Kishore Nallan advised that splitting should occur for distinct entities and recommended client-side merging and sorting using text match score.
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.