Search in sources :

Example 11 with WebConfigToRoleCA

use of org.codelibs.fess.es.config.cbean.ca.WebConfigToRoleCA in project fess by codelibs.

the class BsWebConfigToRoleCA method global.

public void global(String name, ConditionOptionCall<GlobalAggregationBuilder> opLambda, OperatorCall<BsWebConfigToRoleCA> aggsLambda) {
    GlobalAggregationBuilder builder = regGlobalA(name);
    if (opLambda != null) {
        opLambda.callback(builder);
    }
    if (aggsLambda != null) {
        WebConfigToRoleCA ca = new WebConfigToRoleCA();
        aggsLambda.callback(ca);
        ca.getAggregationBuilderList().forEach(builder::subAggregation);
    }
}
Also used : WebConfigToRoleCA(org.codelibs.fess.es.config.cbean.ca.WebConfigToRoleCA) GlobalAggregationBuilder(org.elasticsearch.search.aggregations.bucket.global.GlobalAggregationBuilder)

Aggregations

WebConfigToRoleCA (org.codelibs.fess.es.config.cbean.ca.WebConfigToRoleCA)11 SignificantTermsAggregationBuilder (org.elasticsearch.search.aggregations.bucket.significant.SignificantTermsAggregationBuilder)4 MissingAggregationBuilder (org.elasticsearch.search.aggregations.bucket.missing.MissingAggregationBuilder)2 IpRangeAggregationBuilder (org.elasticsearch.search.aggregations.bucket.range.ip.IpRangeAggregationBuilder)2 TermsAggregationBuilder (org.elasticsearch.search.aggregations.bucket.terms.TermsAggregationBuilder)2 WebConfigToRoleCQ (org.codelibs.fess.es.config.cbean.cq.WebConfigToRoleCQ)1 BsWebConfigToRoleCQ (org.codelibs.fess.es.config.cbean.cq.bs.BsWebConfigToRoleCQ)1 FilterAggregationBuilder (org.elasticsearch.search.aggregations.bucket.filter.FilterAggregationBuilder)1 GlobalAggregationBuilder (org.elasticsearch.search.aggregations.bucket.global.GlobalAggregationBuilder)1 SamplerAggregationBuilder (org.elasticsearch.search.aggregations.bucket.sampler.SamplerAggregationBuilder)1