| Hi Marco, Thanks for your report. I saw you opened an issue on Elasticsearch's GitHub. I agree with you it's probably something they should fix. As for our side, I saw that Gson has LongSerializationPolicy.STRING which would solve the issue from what I have seen as it does not use scientific notation in this case but I'm not very comfortable with serializing all our longs as strings. I think for now your best bet would be to use a TermRangeQuery instead of a NumericRangeQuery. You can format your date in the appropriate format with javax.xml.bind.DatatypeConverter.printDateTime. HTH |