Issues with long integers

It seems that algolia got issues with long (16) integers.

In some cases (1-5%) last digit of integer on get is different than one made by post (batch). I assume it is some floating point/precision issue behind.

I resolved the issue by casting long integers to string but Its dirty.

I assume that this is caused by Number.MAX_SAFE_INTEGER in JavaScript.


Thanks for your message.

To help you I would need the following informations

  • What are you using to target Algolia‚Äôs API ? InstantSearch ? APIClient ? If so which version?
  • Could you provide us an example of the JSON payload you are sending.

Many thanks.