Class FilterContext


  • public class FilterContext
    extends Object
    • Method Detail

      • joinAllButOne

        public static Optional<org.elasticsearch.index.query.QueryBuilder> joinAllButOne​(String exclude,
                                                                                         Map<String,​org.elasticsearch.index.query.QueryBuilder> filterQueries)
        Join filterQueries to a single QueryBuilder but exclude the one specified with "exclude".
        Parameters:
        exclude - the filter query that should not be joined.
        filterQueries - all the filter queries that should be joined
        Returns: