IMPORTANT: No additional bug fixes or documentation updates
will be released for this version. For the latest information, see the
current release documentation.
Range Filter
editRange Filter
editSee Range Filter
FilterBuilder filter = rangeFilter("age") .from("10") .to("20") .includeLower(true) .includeUpper(false);
field |
|
from |
|
to |
|
include lower value means that |
|
include upper value means that |
// A simplified form using gte, gt, lt or lte FilterBuilder filter = rangeFilter("age") .gte("10") .lt("20");
Note that you can ask not to cache the result using
RangeFilterBuilder#cache(boolean)
method. See Caching.