When I run a query to Elasticsearch using Postman or Kibana, it works as expected.
The "value" field returns Double values, which makes sense, because they are stored as a Double type.
But when my AWS Lambda Function makes a GET request to Elasticsearch, using the same query as the one used for Postman or Kibana, all the "value" fields return an Integer value instead.
Any thought on why this happen or how can I avoid it?
I'm using the npm elasticsearch package, with the version 15.1.1.
Here is my query:
Here is the Postman result (The Expected Result, which returns Double values):
Here is the AWS Lambda result (Unwanted Result, which returns Integer values):