Skip to content

v0.28: _geo accepts string values #1694

@guimachiavelli

Description

@guimachiavelli

Starting with v0.28, _geo fields (both lat and lng) should accept numbers in both numeric and string formats:

"_geo": {
  "lat": 0.0, // floating point number, valid
  "lng": "0.0" // a string that can be adequately converted into a float, also valid
}

We need to update the Geosearch guide so this is stated clearly.

References

Spec: meilisearch/specifications#83
Issue on core: meilisearch/meilisearch#2354
SME: @irevoire

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions