Elasticsearch Version 7.0.0
Node module: elasticsearch
Hi, I'm trying to fetch a set of documents from elasticsearch using the node.js client (node module: elasticsearch). The problem I'm running into is that when sorting based on some field (with data type long) that can have missing values, elasticsearch responds with a very large number 9223372036854775807 but for some reason, it gets converted into 9223372036854776000 (which is slightly larger) when using the node.js client. I wish to know:
- Why is the number mutating?
- Can this be handled somehow by tweaking some configuration in elasticsearch?
- If not in elasticsearch, is there an elegant way to solve this within the node.js client?