Nested Filter

See Nested Filter

FilterBuilder filter = nestedFilter("obj1",                     
    boolFilter()                                                
        .must(termFilter("obj1.name", "blue"))
        .must(rangeFilter("obj1.count").gt(5))
    );

path to nested document

filter

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