Search in sources :

Example 1 with BsThumbnailQueueCQ

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

the class BsThumbnailQueueCA method filter.

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

Aggregations

ThumbnailQueueCA (org.codelibs.fess.es.config.cbean.ca.ThumbnailQueueCA)1 ThumbnailQueueCQ (org.codelibs.fess.es.config.cbean.cq.ThumbnailQueueCQ)1 BsThumbnailQueueCQ (org.codelibs.fess.es.config.cbean.cq.bs.BsThumbnailQueueCQ)1 FilterAggregationBuilder (org.elasticsearch.search.aggregations.bucket.filter.FilterAggregationBuilder)1