Search in sources :

Example 1 with BsElevateWordToLabelCQ

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

the class BsElevateWordToLabelCA method filter.

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

Aggregations

ElevateWordToLabelCA (org.codelibs.fess.es.config.cbean.ca.ElevateWordToLabelCA)1 ElevateWordToLabelCQ (org.codelibs.fess.es.config.cbean.cq.ElevateWordToLabelCQ)1 BsElevateWordToLabelCQ (org.codelibs.fess.es.config.cbean.cq.bs.BsElevateWordToLabelCQ)1 FilterAggregationBuilder (org.elasticsearch.search.aggregations.bucket.filter.FilterAggregationBuilder)1