Prioritizing and Sorting Document Searches by Specific Fields
TLDR Robert inquired on sorting document searches by specific fields. Jason advised on using 'sort_by' for ranking, addressed 'per_page' limit's application, and confirmed unsupported "optional filtering".
Oct 07, 2021 (23 months ago)
Robert
04:28 PMJason
04:50 PMsort_by: verified:desc,_text_match:desc
Robert
05:07 PMJason
05:08 PMRobert
05:08 PMRobert
05:42 PMsort_by
something like field1:32:desc
? Meaning the value 32 for that field would be rank 1, if it was found based on the query/keyword?Jason
05:57 PMJason
05:57 PMOct 08, 2021 (23 months ago)
Robert
09:31 AMTypesense
Indexed 2764 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.


Methods for Fetching, Querying, and Modifying Collections in Typesense
Bill inquired about performing OR queries, querying empty arrays and modifying collections in Typesense. Kishore Nallan explained the current limitations and provided workarounds and recommendations for each case. The conversation also touched upon the usage of cache in Typesense and the workings of the _eval function.


Discussing Limits on Sort_by Fields
James asked about the limit on `sort_by` fields. Jason clarified that the limit is for a single search query and that you can use more fields across various searches.

Document Weighting and Sorting Discussion
SamHendley asked how to weight a document based on age and offered a sorting method. Jason clarified the method and suggested an RC for use. SamHendley tested and confirmed the solution. User Kishore Nallan assisted when an error occurred with a new feature.

Adjusting Text Match Score Calculation in TypeSense
Johannes wanted to modify the Text Match Score calculation in TypeSense to improve search results returns. With counsel from Jason and Kishore Nallan, various solutions were proposed, including creating a Github issue, attempting different parameters, and updating Docker to a new version to resolve the matter.
