Search in sources :

Example 1 with BsFailureUrlCQ

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

the class BsFailureUrlCA method filter.

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

Aggregations

FailureUrlCA (org.codelibs.fess.es.config.cbean.ca.FailureUrlCA)1 FailureUrlCQ (org.codelibs.fess.es.config.cbean.cq.FailureUrlCQ)1 BsFailureUrlCQ (org.codelibs.fess.es.config.cbean.cq.bs.BsFailureUrlCQ)1 FilterAggregationBuilder (org.opensearch.search.aggregations.bucket.filter.FilterAggregationBuilder)1