Search in sources :

Example 1 with JobLogCA

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

the class BsJobLogCA method setScriptType_Terms.

public void setScriptType_Terms(String name, ConditionOptionCall<TermsAggregationBuilder> opLambda, OperatorCall<BsJobLogCA> aggsLambda) {
    TermsAggregationBuilder builder = regTermsA(name, "scriptType");
    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.opensearch.search.aggregations.bucket.terms.SignificantTermsAggregationBuilder) TermsAggregationBuilder(org.opensearch.search.aggregations.bucket.terms.TermsAggregationBuilder) JobLogCA(org.codelibs.fess.es.config.cbean.ca.JobLogCA)

Example 2 with JobLogCA

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

the class BsJobLogCA method setTarget_Terms.

public void setTarget_Terms(String name, ConditionOptionCall<TermsAggregationBuilder> opLambda, OperatorCall<BsJobLogCA> aggsLambda) {
    TermsAggregationBuilder builder = regTermsA(name, "target");
    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.opensearch.search.aggregations.bucket.terms.SignificantTermsAggregationBuilder) TermsAggregationBuilder(org.opensearch.search.aggregations.bucket.terms.TermsAggregationBuilder) JobLogCA(org.codelibs.fess.es.config.cbean.ca.JobLogCA)

Example 3 with JobLogCA

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

the class BsJobLogCA method global.

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

Example 4 with JobLogCA

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

the class BsJobLogCA method setStartTime_Histogram.

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

Example 5 with JobLogCA

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

the class BsJobLogCA method setLastUpdated_Missing.

public void setLastUpdated_Missing(String name, ConditionOptionCall<MissingAggregationBuilder> opLambda, OperatorCall<BsJobLogCA> aggsLambda) {
    MissingAggregationBuilder builder = regMissingA(name, "lastUpdated");
    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.opensearch.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.opensearch.search.aggregations.bucket.terms.SignificantTermsAggregationBuilder)12 MissingAggregationBuilder (org.opensearch.search.aggregations.bucket.missing.MissingAggregationBuilder)9 IpRangeAggregationBuilder (org.opensearch.search.aggregations.bucket.range.IpRangeAggregationBuilder)9 TermsAggregationBuilder (org.opensearch.search.aggregations.bucket.terms.TermsAggregationBuilder)6 HistogramAggregationBuilder (org.opensearch.search.aggregations.bucket.histogram.HistogramAggregationBuilder)3 RangeAggregationBuilder (org.opensearch.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.opensearch.search.aggregations.bucket.filter.FilterAggregationBuilder)1 GlobalAggregationBuilder (org.opensearch.search.aggregations.bucket.global.GlobalAggregationBuilder)1 SamplerAggregationBuilder (org.opensearch.search.aggregations.bucket.sampler.SamplerAggregationBuilder)1