Query_by and Query_by_weights Parameters in Typesense
TLDR Kevin didn't understand the result when using query_by + query_by_weights. Jason asked for a sample to assist but Kevin figured it out, asking for more details about weights assignment.
Jul 17, 2023 (2 months ago)
Kevin
06:41 PMJason
07:42 PMKevin
08:17 PMJason
08:26 PMIt doesn’t have to be your actual dataset. Just an example to reproduce the issue you’re talking about would be helpful: https://gist.github.com/jasonbosco/7c3432713216c378472f13e72246f46b
Kevin
10:32 PMis there a place where i can learn more about how typesense assigns these higher weights to the terms that come earlier in query_by? would love to know what the actual weights are so i can tweak them when i supply my query_by_weights param
Typesense
Indexed 2776 threads (79% resolved)
Similar Threads
Understanding and Adjusting Query Parameter Weights
John needed help understanding default weights, manipulating weights, and sorting by weight in query parameters. Jason educated on default weights, sorting mechanism, and also suggested using buckets for sorting based on custom fields.
Clarification on Default Weights for 'query_by' Parameter
Dima asks about the default weights used with the 'query_by' parameter in a query. Jason clarifies that they are powers of two and provides an example. The thread is unresolved.
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.