Search in sources :

Example 11 with ScheduledJobCA

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

the class BsScheduledJobCA method setJobLogging_Histogram.

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

Example 12 with ScheduledJobCA

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

the class BsScheduledJobCA method setCreatedBy_IpRange.

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

Example 13 with ScheduledJobCA

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

the class BsScheduledJobCA method setCreatedTime_Missing.

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

Example 14 with ScheduledJobCA

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

the class BsScheduledJobCA method setTarget_Terms.

public void setTarget_Terms(String name, ConditionOptionCall<TermsAggregationBuilder> opLambda, OperatorCall<BsScheduledJobCA> aggsLambda) {
    TermsAggregationBuilder builder = regTermsA(name, "target");
    if (opLambda != null) {
        opLambda.callback(builder);
    }
    if (aggsLambda != null) {
        ScheduledJobCA ca = new ScheduledJobCA();
        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) ScheduledJobCA(org.codelibs.fess.es.config.cbean.ca.ScheduledJobCA)

Example 15 with ScheduledJobCA

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

the class BsScheduledJobCA method setSortOrder_Missing.

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

Aggregations

ScheduledJobCA (org.codelibs.fess.es.config.cbean.ca.ScheduledJobCA)49 SignificantTermsAggregationBuilder (org.elasticsearch.search.aggregations.bucket.significant.SignificantTermsAggregationBuilder)14 MissingAggregationBuilder (org.elasticsearch.search.aggregations.bucket.missing.MissingAggregationBuilder)13 IpRangeAggregationBuilder (org.elasticsearch.search.aggregations.bucket.range.ip.IpRangeAggregationBuilder)13 TermsAggregationBuilder (org.elasticsearch.search.aggregations.bucket.terms.TermsAggregationBuilder)7 HistogramAggregationBuilder (org.elasticsearch.search.aggregations.bucket.histogram.HistogramAggregationBuilder)6 RangeAggregationBuilder (org.elasticsearch.search.aggregations.bucket.range.RangeAggregationBuilder)6 ScheduledJobCQ (org.codelibs.fess.es.config.cbean.cq.ScheduledJobCQ)1 BsScheduledJobCQ (org.codelibs.fess.es.config.cbean.cq.bs.BsScheduledJobCQ)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