Thibaut M
07/02/2025, 12:51 PM_text_match sort_by to favor a bit the results from a collections so when typesense does its matching it increase the odds of returning a hit from the collection we want to favor in the union search.
What I had in mind:
Somthing like increasing from a certain percentage the text_match value on this exact collection but I'm not sure this is the right approachJason Bosco
07/02/2025, 4:50 PMHarpreet Sangar
07/03/2025, 5:53 AMThibaut M
07/03/2025, 12:17 PMunion multisearch sorted by _text_match. But as I think users rarely get to the garage page, I want to bias my search so when a user searches a garage, its more likely to be shown a result from garage collection on top of the others.
Do you know if there is a way to boost text_match score for a given collections so the odds of having a garage results on top of the other hits is more likely to happen ?Harpreet Sangar
07/03/2025, 1:43 PM{
"union": true,
"searches": [
{
"collection": "garages",
...
},
{
"collection": "cars",
...
},
{
"collection": "motorbike",
...
}
]
}
the garages document will appear first in the response.Thibaut M
07/03/2025, 3:47 PMHarpreet Sangar
07/04/2025, 11:05 AM