Search in sources :

Example 1 with BsFileAuthenticationCQ

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

the class BsFileAuthenticationCA method filter.

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

Aggregations

FileAuthenticationCA (org.codelibs.fess.es.config.cbean.ca.FileAuthenticationCA)1 FileAuthenticationCQ (org.codelibs.fess.es.config.cbean.cq.FileAuthenticationCQ)1 BsFileAuthenticationCQ (org.codelibs.fess.es.config.cbean.cq.bs.BsFileAuthenticationCQ)1 FilterAggregationBuilder (org.opensearch.search.aggregations.bucket.filter.FilterAggregationBuilder)1