Skip to content

use BoundingBox for geo queries instead of distance / radius #958

Open
@joepio

Description

@joepio

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    supportQuestion that may be answered by the support team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions