-
Notifications
You must be signed in to change notification settings - Fork 66
Use _geoBoundingBox when creating the geo search filter #1048
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
🦋 Changeset detectedLatest commit: 193b350 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
7ea1edc to
ae33491
Compare
alallema
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Just one question
packages/instant-meilisearch/src/adapter/search-request-adapter/geo-filter-adapter.ts
Outdated
Show resolved
Hide resolved
b927bb6 to
fd1e115
Compare
packages/instant-meilisearch/src/adapter/search-request-adapter/__tests__/geo-rules.test.ts
Outdated
Show resolved
Hide resolved
packages/instant-meilisearch/src/adapter/search-request-adapter/search-params-adapter.ts
Show resolved
Hide resolved
fd1e115 to
193b350
Compare
mdubus
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM ✨🦕
* Use _geoBoundingBox to create geosearch filters * Add the _geoBoundingBox changeset
As per the specification: meilisearch/specifications#223
We used to transform the
insideBoundingBoxprovided byinstantsearchto a filter using_geoRadius. This required a lot of maths and was not the behavior expected by the user.With the introduction of the
_geoBoundingBoxfilter in Meilisearch, we can now use that instead of_geoRadius.