Search in sources :

Example 1 with GroupCA

use of org.codelibs.fess.es.user.cbean.ca.GroupCA in project fess by codelibs.

the class BsGroupCA method setName_Missing.

public void setName_Missing(String name, ConditionOptionCall<MissingAggregationBuilder> opLambda, OperatorCall<BsGroupCA> aggsLambda) {
    MissingAggregationBuilder builder = regMissingA(name, "name");
    if (opLambda != null) {
        opLambda.callback(builder);
    }
    if (aggsLambda != null) {
        GroupCA ca = new GroupCA();
        aggsLambda.callback(ca);
        ca.getAggregationBuilderList().forEach(builder::subAggregation);
    }
}
Also used : GroupCA(org.codelibs.fess.es.user.cbean.ca.GroupCA) MissingAggregationBuilder(org.elasticsearch.search.aggregations.bucket.missing.MissingAggregationBuilder)

Example 2 with GroupCA

use of org.codelibs.fess.es.user.cbean.ca.GroupCA in project fess by codelibs.

the class BsGroupCA method filter.

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

Example 3 with GroupCA

use of org.codelibs.fess.es.user.cbean.ca.GroupCA in project fess by codelibs.

the class BsGroupCA method setGidNumber_Missing.

public void setGidNumber_Missing(String name, ConditionOptionCall<MissingAggregationBuilder> opLambda, OperatorCall<BsGroupCA> aggsLambda) {
    MissingAggregationBuilder builder = regMissingA(name, "gidNumber");
    if (opLambda != null) {
        opLambda.callback(builder);
    }
    if (aggsLambda != null) {
        GroupCA ca = new GroupCA();
        aggsLambda.callback(ca);
        ca.getAggregationBuilderList().forEach(builder::subAggregation);
    }
}
Also used : GroupCA(org.codelibs.fess.es.user.cbean.ca.GroupCA) MissingAggregationBuilder(org.elasticsearch.search.aggregations.bucket.missing.MissingAggregationBuilder)

Example 4 with GroupCA

use of org.codelibs.fess.es.user.cbean.ca.GroupCA in project fess by codelibs.

the class BsGroupCA method setGidNumber_Histogram.

public void setGidNumber_Histogram(String name, ConditionOptionCall<HistogramAggregationBuilder> opLambda, OperatorCall<BsGroupCA> aggsLambda) {
    HistogramAggregationBuilder builder = regHistogramA(name, "gidNumber");
    if (opLambda != null) {
        opLambda.callback(builder);
    }
    if (aggsLambda != null) {
        GroupCA ca = new GroupCA();
        aggsLambda.callback(ca);
        ca.getAggregationBuilderList().forEach(builder::subAggregation);
    }
}
Also used : HistogramAggregationBuilder(org.elasticsearch.search.aggregations.bucket.histogram.HistogramAggregationBuilder) GroupCA(org.codelibs.fess.es.user.cbean.ca.GroupCA)

Example 5 with GroupCA

use of org.codelibs.fess.es.user.cbean.ca.GroupCA in project fess by codelibs.

the class BsGroupCA method setGidNumber_Range.

public void setGidNumber_Range(String name, ConditionOptionCall<RangeAggregationBuilder> opLambda, OperatorCall<BsGroupCA> aggsLambda) {
    RangeAggregationBuilder builder = regRangeA(name, "gidNumber");
    if (opLambda != null) {
        opLambda.callback(builder);
    }
    if (aggsLambda != null) {
        GroupCA ca = new GroupCA();
        aggsLambda.callback(ca);
        ca.getAggregationBuilderList().forEach(builder::subAggregation);
    }
}
Also used : GroupCA(org.codelibs.fess.es.user.cbean.ca.GroupCA) IpRangeAggregationBuilder(org.elasticsearch.search.aggregations.bucket.range.ip.IpRangeAggregationBuilder) RangeAggregationBuilder(org.elasticsearch.search.aggregations.bucket.range.RangeAggregationBuilder)

Aggregations

GroupCA (org.codelibs.fess.es.user.cbean.ca.GroupCA)10 MissingAggregationBuilder (org.elasticsearch.search.aggregations.bucket.missing.MissingAggregationBuilder)2 IpRangeAggregationBuilder (org.elasticsearch.search.aggregations.bucket.range.ip.IpRangeAggregationBuilder)2 SignificantTermsAggregationBuilder (org.elasticsearch.search.aggregations.bucket.significant.SignificantTermsAggregationBuilder)2 GroupCQ (org.codelibs.fess.es.user.cbean.cq.GroupCQ)1 BsGroupCQ (org.codelibs.fess.es.user.cbean.cq.bs.BsGroupCQ)1 FilterAggregationBuilder (org.elasticsearch.search.aggregations.bucket.filter.FilterAggregationBuilder)1 GlobalAggregationBuilder (org.elasticsearch.search.aggregations.bucket.global.GlobalAggregationBuilder)1 HistogramAggregationBuilder (org.elasticsearch.search.aggregations.bucket.histogram.HistogramAggregationBuilder)1 RangeAggregationBuilder (org.elasticsearch.search.aggregations.bucket.range.RangeAggregationBuilder)1 SamplerAggregationBuilder (org.elasticsearch.search.aggregations.bucket.sampler.SamplerAggregationBuilder)1 TermsAggregationBuilder (org.elasticsearch.search.aggregations.bucket.terms.TermsAggregationBuilder)1