Range Filter

edit

See Range Filter

FilterBuilders.rangeFilter("age")
    .from("10")
    .to("20")
    .includeLower(true)
    .includeUpper(false);

// A simplified form using gte, gt, lt or lte
FilterBuilders.rangeFilter("age")
    .gte("10")
    .lt("20");

Note that you can ask not to cache the result using RangeFilterBuilder#cache(boolean) method. See Caching.