Search in sources :

Example 1 with BsFileConfigToRoleCQ

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

the class BsFileConfigToRoleCA method filter.

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

Aggregations

FileConfigToRoleCA (org.codelibs.fess.es.config.cbean.ca.FileConfigToRoleCA)1 FileConfigToRoleCQ (org.codelibs.fess.es.config.cbean.cq.FileConfigToRoleCQ)1 BsFileConfigToRoleCQ (org.codelibs.fess.es.config.cbean.cq.bs.BsFileConfigToRoleCQ)1 FilterAggregationBuilder (org.elasticsearch.search.aggregations.bucket.filter.FilterAggregationBuilder)1