Query Dsl Range
select * from orders where id >= 1 and id <= 2curl -XPOST 'localhost:9200/orders/orders/_search?pretty=true' \ -H 'content-type:application/json' \ -d '{ "query" : { "range" : { "id" : { "gte" : 1, "lte" : 2 } } } }'
Last updated
select * from orders where id >= 1 and id <= 2curl -XPOST 'localhost:9200/orders/orders/_search?pretty=true' \
-H 'content-type:application/json' \
-d '{
"query" : {
"range" : {
"id" : {
"gte" : 1,
"lte" : 2
}
}
}
}'Last updated