Prioritizing Brand Partner Results in Data Structure
TLDR Digamber sought advice on prioritizing brand partner results in an arbitrary list. Kishore Nallan suggested using sorting on boolean field brand_partner
to achieve this.
1
Jan 06, 2022 (22 months ago)
Digamber
09:40 AMI’m trying to get a list of results (data structure not set in stone at the moment(
I’d like to have something like Brand Partners results show up first - then return other results
So for example the listing could be the same thing
Tesla - by Brand Partner
Tesla - by Anonymous User
Would like to get Tesla - by Brand Partner show up first before Anonymous user.
What would be the best way of achieving this
Kishore Nallan
09:41 AMTesla
and Brand Partner
separate fields?Digamber
10:01 AMand Brand Parnter would be a boolean flag
Kishore Nallan
10:10 AMsort_by=brand_partner:desc,_text_match:desc
Digamber
10:20 AMKishore Nallan
10:21 AMDigamber
10:21 AM1
Typesense
Indexed 2786 threads (79% resolved)
Similar Threads
Sorting within Group_by with Group_limit
Morgan wants to sort within groups after grouping, Kishore Nallan offers advice and validates. Proposed solutions do not guarantee prioritizing `inStock` within groups.
Prioritizing and Sorting Document Searches by Specific Fields
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".
Utilizing Vector Search and Word Embeddings for Comprehensive Search in Typesense
Bill sought clarification on using vector search with multiple word embeddings in Typesense and using them instead of OpenAI's embedding. Kishore Nallan and Jason informed him that their development version 0.25 supports open source embedding models. They also resolved Bill's concerns regarding search performance, language support, and limitations in the search parameters.