Search in sources :

Example 1 with BsRequestHeaderCQ

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

the class BsRequestHeaderCA method filter.

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

Aggregations

RequestHeaderCA (org.codelibs.fess.es.config.cbean.ca.RequestHeaderCA)1 RequestHeaderCQ (org.codelibs.fess.es.config.cbean.cq.RequestHeaderCQ)1 BsRequestHeaderCQ (org.codelibs.fess.es.config.cbean.cq.bs.BsRequestHeaderCQ)1 FilterAggregationBuilder (org.elasticsearch.search.aggregations.bucket.filter.FilterAggregationBuilder)1