Skip to content

Conversation

@bidoubiwa
Copy link
Contributor

Instantsearch geo widget requires the geo field to be named _geoloc. Nonetheless, the field returned from meilisearch is _geo.

Previously we replaced _geo with _geoloc at the root of the hits (so not in _formatted) which in itself was a bug.

Since instantsearch needs _geoloc but we also want to avoid confusing the user to why their _geo field disappeared, we decided to keep both _geo and _geoloc files at the root of the hit but also in _formatted (of course only if there was a _geo field present to begin with).

@bidoubiwa bidoubiwa added the bug Something isn't working label Dec 1, 2022
Copy link
Member

@mdubus mdubus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM ✨🦕

@bidoubiwa
Copy link
Contributor Author

bors merge

@meili-bors
Copy link
Contributor

meili-bors bot commented Dec 1, 2022

@meili-bors meili-bors bot merged commit 45b1473 into main Dec 1, 2022
@meili-bors meili-bors bot deleted the fix_nested_geo_fields branch December 1, 2022 14:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants