Here My Code is
POST vehicletracking/_search
{
"filter": {
"range": {
"localtimestamp": {
"gte": "2016-02-01",
"lte": "2016-02-05"
}
}
}
}
How to write this code in Java Api?
Here My Code is
POST vehicletracking/_search
{
"filter": {
"range": {
"localtimestamp": {
"gte": "2016-02-01",
"lte": "2016-02-05"
}
}
}
}
How to write this code in Java Api?
When I use
QueryBuilder qb2 = QueryBuilders.rangeQuery("localtimestamp")
.gte("2016/02/02")
.lte("2016/02/05");
then i get this type of error.
"Failed to execute phase [query], all shards failed; shardFailures".
Can't tell without details:
Full trace
Actual Mapping
© 2020. All Rights Reserved - Elasticsearch
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.