Make geosearch ranking rule more tolerant on distances #264
Replies: 2 comments 4 replies
-
Related issues: |
Beta Was this translation helpful? Give feedback.
-
I would like to implement this. We could introduce a third optional parameter in the Algolia also has a similar parameter but you need to set it for your whole query if I understood correctly, which is, in my opinion, a quite bad design. I don't think elastic-search has a similar parameter. What do you think of that? I think it's quite close to what typesense did so maybe it's not the best design, but I don't see any more user-friendly option than that 🤔 EDIT: Also I noticed that algolia & typesense only use this parameter with distances, meters or kilometres but no percentage.
|
Beta Was this translation helpful? Give feedback.
-
Summary
Today the geo-search ranking rule sort strictly the result by distance, meanings that the probability to have more than 1 document by buckets is null.
The issue to have a ranking rule that returns the document one by one is that all the ranking rules that follow the geo-search will apply their sort on one document, making them completely useless.
Possible improvement
The geo-search ranking rule should sort by geo-points accepting a rate difference between the distance of the first geo-point found for the bucket and the distance of the other points.
For example; we take a rate difference of
50%
(arbitrary chosen):Beta Was this translation helpful? Give feedback.
All reactions