Search in sources :

Example 31 with JobLogCA

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

the class BsJobLogCA method setJobStatus_SignificantTerms.

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

Example 32 with JobLogCA

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

the class BsJobLogCA method setScriptResult_SignificantTerms.

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

Example 33 with JobLogCA

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

the class BsJobLogCA method setJobName_IpRange.

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

Example 34 with JobLogCA

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

the class BsJobLogCA method setScriptData_IpRange.

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

Example 35 with JobLogCA

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

the class BsJobLogCA method setScriptResult_Missing.

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

Aggregations

JobLogCA (org.codelibs.fess.es.config.cbean.ca.JobLogCA)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 JobLogCQ (org.codelibs.fess.es.config.cbean.cq.JobLogCQ)1 BsJobLogCQ (org.codelibs.fess.es.config.cbean.cq.bs.BsJobLogCQ)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