Search in sources :

Example 26 with AccessTokenCA

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

the class BsAccessTokenCA method setCreatedTime_Histogram.

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

Example 27 with AccessTokenCA

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

the class BsAccessTokenCA method setExpiredTime_Missing.

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

Example 28 with AccessTokenCA

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

the class BsAccessTokenCA method setName_IpRange.

public void setName_IpRange(String name, ConditionOptionCall<IpRangeAggregationBuilder> opLambda, OperatorCall<BsAccessTokenCA> aggsLambda) {
    IpRangeAggregationBuilder builder = regIpRangeA(name, "name");
    if (opLambda != null) {
        opLambda.callback(builder);
    }
    if (aggsLambda != null) {
        AccessTokenCA ca = new AccessTokenCA();
        aggsLambda.callback(ca);
        ca.getAggregationBuilderList().forEach(builder::subAggregation);
    }
}
Also used : IpRangeAggregationBuilder(org.elasticsearch.search.aggregations.bucket.range.ip.IpRangeAggregationBuilder) AccessTokenCA(org.codelibs.fess.es.config.cbean.ca.AccessTokenCA)

Example 29 with AccessTokenCA

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

the class BsAccessTokenCA method setName_Terms.

public void setName_Terms(String name, ConditionOptionCall<TermsAggregationBuilder> opLambda, OperatorCall<BsAccessTokenCA> aggsLambda) {
    TermsAggregationBuilder builder = regTermsA(name, "name");
    if (opLambda != null) {
        opLambda.callback(builder);
    }
    if (aggsLambda != null) {
        AccessTokenCA ca = new AccessTokenCA();
        aggsLambda.callback(ca);
        ca.getAggregationBuilderList().forEach(builder::subAggregation);
    }
}
Also used : TermsAggregationBuilder(org.elasticsearch.search.aggregations.bucket.terms.TermsAggregationBuilder) SignificantTermsAggregationBuilder(org.elasticsearch.search.aggregations.bucket.significant.SignificantTermsAggregationBuilder) AccessTokenCA(org.codelibs.fess.es.config.cbean.ca.AccessTokenCA)

Example 30 with AccessTokenCA

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

the class BsAccessTokenCA method setParameterName_IpRange.

public void setParameterName_IpRange(String name, ConditionOptionCall<IpRangeAggregationBuilder> opLambda, OperatorCall<BsAccessTokenCA> aggsLambda) {
    IpRangeAggregationBuilder builder = regIpRangeA(name, "parameter_name");
    if (opLambda != null) {
        opLambda.callback(builder);
    }
    if (aggsLambda != null) {
        AccessTokenCA ca = new AccessTokenCA();
        aggsLambda.callback(ca);
        ca.getAggregationBuilderList().forEach(builder::subAggregation);
    }
}
Also used : IpRangeAggregationBuilder(org.elasticsearch.search.aggregations.bucket.range.ip.IpRangeAggregationBuilder) AccessTokenCA(org.codelibs.fess.es.config.cbean.ca.AccessTokenCA)

Aggregations

AccessTokenCA (org.codelibs.fess.es.config.cbean.ca.AccessTokenCA)36 SignificantTermsAggregationBuilder (org.elasticsearch.search.aggregations.bucket.significant.SignificantTermsAggregationBuilder)12 MissingAggregationBuilder (org.elasticsearch.search.aggregations.bucket.missing.MissingAggregationBuilder)9 IpRangeAggregationBuilder (org.elasticsearch.search.aggregations.bucket.range.ip.IpRangeAggregationBuilder)9 TermsAggregationBuilder (org.elasticsearch.search.aggregations.bucket.terms.TermsAggregationBuilder)6 HistogramAggregationBuilder (org.elasticsearch.search.aggregations.bucket.histogram.HistogramAggregationBuilder)3 RangeAggregationBuilder (org.elasticsearch.search.aggregations.bucket.range.RangeAggregationBuilder)3 AccessTokenCQ (org.codelibs.fess.es.config.cbean.cq.AccessTokenCQ)1 BsAccessTokenCQ (org.codelibs.fess.es.config.cbean.cq.bs.BsAccessTokenCQ)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