See Numeric Range Filter
FilterBuilders.numericRangeFilter("age") .from(10) .to(20) .includeLower(true) .includeUpper(false);
Note that you can cache the result using NumericRangeFilterBuilder#cache(boolean) method. See Caching.
NumericRangeFilterBuilder#cache(boolean)
Most Popular
Video
Get Started with Elasticsearch
Intro to Kibana
ELK for Logs & Metrics