See Range Query
QueryBuilder qb = rangeQuery("price") .from(5) .to(10) .includeLower(true) .includeUpper(false);
field
from
to
include lower value means that from is gt when false or gte when true
gt
false
gte
true
include upper value means that to is lt when false or lte when true
lt
lte
Most Popular
Video
Get Started with Elasticsearch
Intro to Kibana
ELK for Logs & Metrics