Search in sources :

Example 1 with BsWebAuthenticationCQ

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

the class BsWebAuthenticationCA method filter.

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

Aggregations

WebAuthenticationCA (org.codelibs.fess.es.config.cbean.ca.WebAuthenticationCA)1 WebAuthenticationCQ (org.codelibs.fess.es.config.cbean.cq.WebAuthenticationCQ)1 BsWebAuthenticationCQ (org.codelibs.fess.es.config.cbean.cq.bs.BsWebAuthenticationCQ)1 FilterAggregationBuilder (org.elasticsearch.search.aggregations.bucket.filter.FilterAggregationBuilder)1