Join Slack
Powered by
Hello everyone, In Typesense, how do I penalize se...
# community-help
a
Alan Seleme
07/02/2024, 4:52 PM
Hello everyone, In Typesense, how do I penalize search results in multisearch if one of the search criteria is not identified, so that the search results are ordered by those with the most identified criteria? Thanks in advance for your help!
j
Jason Bosco
07/02/2024, 7:33 PM
You can use filter_by expressions inside of sort_by and assign scores to each filter_by expression, to sort each class of matches differently:
https://typesense.org/docs/26.0/api/search.html#sorting-based-on-filter-score
Open in Slack
Previous
Next