Search in sources :

Example 1 with BsWebConfigToRoleCQ

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

the class BsWebConfigToRoleCA method filter.

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

Aggregations

WebConfigToRoleCA (org.codelibs.fess.es.config.cbean.ca.WebConfigToRoleCA)1 WebConfigToRoleCQ (org.codelibs.fess.es.config.cbean.cq.WebConfigToRoleCQ)1 BsWebConfigToRoleCQ (org.codelibs.fess.es.config.cbean.cq.bs.BsWebConfigToRoleCQ)1 FilterAggregationBuilder (org.elasticsearch.search.aggregations.bucket.filter.FilterAggregationBuilder)1