Numeric Range Filteredit

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.