I want to sort my results by a weighted query with...
# community-help
v
I want to sort my results by a weighted query with both name and distance using latitude and longitude. Any guidance on how to do this?
j
It would be something like:
sort_by: "name:asc,location(48.853, 2.344):asc"
However, this will only cause geo sorting to kick-in when name is a tie for a particular set of records. The geo sort will help break the tie
v
Is there a way I could weigh the results 50 50 through Typesense?
k
That's not possible. Weights are used for tie breaking and setting relative important. We don't compute an aggregate score based on weights.