Could you share the exact mapping you have, some data you added, etc?
The best thing to do is to reproduce first the problem using the Kibana dev console.
If it fails there, it needs to be fixed before trying to "fix it" using the Java client.
From your full reproduction script it will be easier to iterate and help you.
The only specifics is that I use routing, and the rangeDate field, that has a date_range type.
When I query with Java, of course, I set the routing values properly.
The problem arise with aggregations, Elastic 7 seems unable to just do a simple "min" of the dateRange.gte field, and "max" of the dateRange.lte field (exceptions occurs).
Could you confirm, the following Java code is supposed to be correct ?
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.