Skip to content
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

Check automaticRadius type in search response is string #539

Closed
aseure opened this issue Jul 17, 2019 · 0 comments · Fixed by #557
Closed

Check automaticRadius type in search response is string #539

aseure opened this issue Jul 17, 2019 · 0 comments · Fixed by #557

Comments

@aseure
Copy link

aseure commented Jul 17, 2019

A user of the Go client reported
on support that they had issue while the Go client was deserializing the
automaticRadius field of a geo search query.

The Algolia documentation says
the type of automaticRadius is a string but, as of today, the written type
annotation is marked to float.

Let's make sure that this field is correctly typed as a string (and not a
float), as it should.

For the record, to make automaticRadius in a search response, you need to
perform a search query with:

  • with a geo parameter such as aroundLatLng
  • without any aroundRadius search parameter
  • have records in your index that will match the geo query, so they need to
    have a _geoloc attribute
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant