IMPORTANT: No additional bug fixes or documentation updates
will be released for this version. For the latest information, see the
current release documentation.
Nested Filter
edit
IMPORTANT: This documentation is no longer updated. Refer to Elastic's version policy and the latest documentation.
Nested Filter
editSee Nested Filter
FilterBuilder filter = nestedFilter("obj1",
boolFilter()
.must(termFilter("obj1.name", "blue"))
.must(rangeFilter("obj1.count").gt(5))
);
Note that you can ask not to cache the result using
NestedFilterBuilder#cache(boolean) method. See Caching.