meilisearch / meilisearch-js-plugins

The search client to use Meilisearch with InstantSearch.

Home Page:https://www.meilisearch.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

use BoundingBox for geo queries instead of distance / radius

joepio opened this issue · comments

Currently, using instant-meilisearch combined with a map view, we have some issues related to the use of geo distance queries. Because the resulting shape is a circle, the shape of the map shown to users will either not show all results, or not show some of the results. This becomes a problem when the users can filter the results by moving the map.

The proper solution here is to use a bounding box, instead of geo radius queries. These are not yet officially supported by meilisearch, but are planned for the 1.1 release in march.

I think that when 1.1 is released, instant-meilisearch should be updated to use bounding box queries by default. This probably involves making changes to geo-rules-adapter.ts.

Hello @joepio

Thank you very much for the feedback. Indeed this feature is in the works and will be released with v1.1, as you've mentioned above. The team is well aware of this, and there will be changes to ensure compatibility with instant-meilisearch.

I hope this helps. Thanks again.