Search in sources :

Example 1 with BsUserInfoCQ

use of org.codelibs.fess.es.log.cbean.cq.bs.BsUserInfoCQ in project fess by codelibs.

the class BsUserInfoCA method filter.

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

Aggregations

UserInfoCA (org.codelibs.fess.es.log.cbean.ca.UserInfoCA)1 UserInfoCQ (org.codelibs.fess.es.log.cbean.cq.UserInfoCQ)1 BsUserInfoCQ (org.codelibs.fess.es.log.cbean.cq.bs.BsUserInfoCQ)1 FilterAggregationBuilder (org.elasticsearch.search.aggregations.bucket.filter.FilterAggregationBuilder)1