Search in sources :

Example 16 with FailureUrlCA

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

the class BsFailureUrlCA method sampler.

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

Example 17 with FailureUrlCA

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

the class BsFailureUrlCA method setUrl_Missing.

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

Example 18 with FailureUrlCA

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

the class BsFailureUrlCA method setErrorName_SignificantTerms.

public void setErrorName_SignificantTerms(String name, ConditionOptionCall<SignificantTermsAggregationBuilder> opLambda, OperatorCall<BsFailureUrlCA> aggsLambda) {
    SignificantTermsAggregationBuilder builder = regSignificantTermsA(name, "errorName");
    if (opLambda != null) {
        opLambda.callback(builder);
    }
    if (aggsLambda != null) {
        FailureUrlCA ca = new FailureUrlCA();
        aggsLambda.callback(ca);
        ca.getAggregationBuilderList().forEach(builder::subAggregation);
    }
}
Also used : FailureUrlCA(org.codelibs.fess.es.config.cbean.ca.FailureUrlCA) SignificantTermsAggregationBuilder(org.opensearch.search.aggregations.bucket.terms.SignificantTermsAggregationBuilder)

Example 19 with FailureUrlCA

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

the class BsFailureUrlCA method global.

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

Example 20 with FailureUrlCA

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

the class BsFailureUrlCA method setConfigId_Terms.

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

Aggregations

FailureUrlCA (org.codelibs.fess.es.config.cbean.ca.FailureUrlCA)29 SignificantTermsAggregationBuilder (org.opensearch.search.aggregations.bucket.terms.SignificantTermsAggregationBuilder)10 MissingAggregationBuilder (org.opensearch.search.aggregations.bucket.missing.MissingAggregationBuilder)7 IpRangeAggregationBuilder (org.opensearch.search.aggregations.bucket.range.IpRangeAggregationBuilder)7 TermsAggregationBuilder (org.opensearch.search.aggregations.bucket.terms.TermsAggregationBuilder)5 HistogramAggregationBuilder (org.opensearch.search.aggregations.bucket.histogram.HistogramAggregationBuilder)2 RangeAggregationBuilder (org.opensearch.search.aggregations.bucket.range.RangeAggregationBuilder)2 FailureUrlCQ (org.codelibs.fess.es.config.cbean.cq.FailureUrlCQ)1 BsFailureUrlCQ (org.codelibs.fess.es.config.cbean.cq.bs.BsFailureUrlCQ)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