Search in sources :

Example 1 with BsJobLogCQ

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

the class BsJobLogCA method filter.

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

Aggregations

JobLogCA (org.codelibs.fess.es.config.cbean.ca.JobLogCA)1 JobLogCQ (org.codelibs.fess.es.config.cbean.cq.JobLogCQ)1 BsJobLogCQ (org.codelibs.fess.es.config.cbean.cq.bs.BsJobLogCQ)1 FilterAggregationBuilder (org.opensearch.search.aggregations.bucket.filter.FilterAggregationBuilder)1