Some ES clients can't handle well big integers that ES server may pass to them. For example:
It would be nice if a client can tell the ES server in what form it expects these big integers to be returned.
As an example, I am adding @ezimuel suggestion here:
Pinging @elastic/es-search (:Search/Search)
Pinging @elastic/es-core-infra (:Core/Infra/REST API)
It would be nice if a client can tell the ES server in what form it expects these big integers to be returned.
But also how these big integers are sent to Elasticsearch :)
I think that if we go down the path of the bigint_as_string query parameter, ES should both send and accept bigint as strings.
In addition to what we said in #32434, I think that supporting bigint as strings in the rest layer it's important for Elasticseach, as one of its best features is that it's very easy to connect to it with any language/platform. Maintaining this interoperability would allow having enough flexibility to support any use case, and keeping the getting started experience flawlessly. What do you think?
Most helpful comment
But also how these big integers are sent to Elasticsearch :)
I think that if we go down the path of the
bigint_as_stringquery parameter, ES should both send and accept bigint as strings.In addition to what we said in #32434, I think that supporting bigint as strings in the rest layer it's important for Elasticseach, as one of its best features is that it's very easy to connect to it with any language/platform. Maintaining this interoperability would allow having enough flexibility to support any use case, and keeping the getting started experience flawlessly. What do you think?