Search in sources :

Example 1 with BsRoleTypeCQ

use of org.codelibs.fess.es.config.cbean.cq.bs.BsRoleTypeCQ in project fess by codelibs.

the class BsRoleTypeCA method filter.

// ===================================================================================
// Aggregation Set
// =========
public void filter(String name, EsAbstractConditionQuery.OperatorCall<BsRoleTypeCQ> queryLambda, ConditionOptionCall<FilterAggregationBuilder> opLambda, OperatorCall<BsRoleTypeCA> aggsLambda) {
    RoleTypeCQ cq = new RoleTypeCQ();
    if (queryLambda != null) {
        queryLambda.callback(cq);
    }
    FilterAggregationBuilder builder = regFilterA(name, cq.getQuery());
    if (opLambda != null) {
        opLambda.callback(builder);
    }
    if (aggsLambda != null) {
        RoleTypeCA ca = new RoleTypeCA();
        aggsLambda.callback(ca);
        ca.getAggregationBuilderList().forEach(builder::subAggregation);
    }
}
Also used : FilterAggregationBuilder(org.opensearch.search.aggregations.bucket.filter.FilterAggregationBuilder) RoleTypeCQ(org.codelibs.fess.es.config.cbean.cq.RoleTypeCQ) BsRoleTypeCQ(org.codelibs.fess.es.config.cbean.cq.bs.BsRoleTypeCQ) RoleTypeCA(org.codelibs.fess.es.config.cbean.ca.RoleTypeCA)

Aggregations

RoleTypeCA (org.codelibs.fess.es.config.cbean.ca.RoleTypeCA)1 RoleTypeCQ (org.codelibs.fess.es.config.cbean.cq.RoleTypeCQ)1 BsRoleTypeCQ (org.codelibs.fess.es.config.cbean.cq.bs.BsRoleTypeCQ)1 FilterAggregationBuilder (org.opensearch.search.aggregations.bucket.filter.FilterAggregationBuilder)1