Search in sources :

Example 1 with BsCrawlingInfoParamCQ

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

the class BsCrawlingInfoParamCA method filter.

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

Aggregations

CrawlingInfoParamCA (org.codelibs.fess.es.config.cbean.ca.CrawlingInfoParamCA)1 CrawlingInfoParamCQ (org.codelibs.fess.es.config.cbean.cq.CrawlingInfoParamCQ)1 BsCrawlingInfoParamCQ (org.codelibs.fess.es.config.cbean.cq.bs.BsCrawlingInfoParamCQ)1 FilterAggregationBuilder (org.elasticsearch.search.aggregations.bucket.filter.FilterAggregationBuilder)1