Range Filteredit

See Range Filter

FilterBuilder filter = rangeFilter("age")   
    .from("10")                             
    .to("20")                               
    .includeLower(true)                     
    .includeUpper(false);                   

field

from

to

include lower value means that from is gt when false or gte when true

include upper value means that to is lt when false or lte when true

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

field

set from to 10 and includeLower to true

set to to 20 and includeUpper to false

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