Search in sources :

Example 31 with DataConfigCA

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

the class BsDataConfigCA method setName_Missing.

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

Example 32 with DataConfigCA

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

the class BsDataConfigCA method sampler.

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

Example 33 with DataConfigCA

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

the class BsDataConfigCA method setSortOrder_Range.

public void setSortOrder_Range(String name, ConditionOptionCall<RangeAggregationBuilder> opLambda, OperatorCall<BsDataConfigCA> aggsLambda) {
    RangeAggregationBuilder builder = regRangeA(name, "sortOrder");
    if (opLambda != null) {
        opLambda.callback(builder);
    }
    if (aggsLambda != null) {
        DataConfigCA ca = new DataConfigCA();
        aggsLambda.callback(ca);
        ca.getAggregationBuilderList().forEach(builder::subAggregation);
    }
}
Also used : DataConfigCA(org.codelibs.fess.es.config.cbean.ca.DataConfigCA) RangeAggregationBuilder(org.opensearch.search.aggregations.bucket.range.RangeAggregationBuilder) IpRangeAggregationBuilder(org.opensearch.search.aggregations.bucket.range.IpRangeAggregationBuilder)

Example 34 with DataConfigCA

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

the class BsDataConfigCA method setHandlerName_IpRange.

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

Example 35 with DataConfigCA

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

the class BsDataConfigCA method setHandlerScript_Missing.

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

Aggregations

DataConfigCA (org.codelibs.fess.es.config.cbean.ca.DataConfigCA)51 SignificantTermsAggregationBuilder (org.opensearch.search.aggregations.bucket.terms.SignificantTermsAggregationBuilder)16 MissingAggregationBuilder (org.opensearch.search.aggregations.bucket.missing.MissingAggregationBuilder)14 IpRangeAggregationBuilder (org.opensearch.search.aggregations.bucket.range.IpRangeAggregationBuilder)13 TermsAggregationBuilder (org.opensearch.search.aggregations.bucket.terms.TermsAggregationBuilder)8 HistogramAggregationBuilder (org.opensearch.search.aggregations.bucket.histogram.HistogramAggregationBuilder)5 RangeAggregationBuilder (org.opensearch.search.aggregations.bucket.range.RangeAggregationBuilder)5 DataConfigCQ (org.codelibs.fess.es.config.cbean.cq.DataConfigCQ)1 BsDataConfigCQ (org.codelibs.fess.es.config.cbean.cq.bs.BsDataConfigCQ)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