Search in sources :

Example 31 with LabelTypeCA

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

the class BsLabelTypeCA method setIncludedPaths_Terms.

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

Example 32 with LabelTypeCA

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

the class BsLabelTypeCA method setUpdatedBy_Missing.

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

Example 33 with LabelTypeCA

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

the class BsLabelTypeCA method setUpdatedTime_Range.

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

Example 34 with LabelTypeCA

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

the class BsLabelTypeCA method global.

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

Example 35 with LabelTypeCA

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

the class BsLabelTypeCA method setValue_IpRange.

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

Aggregations

LabelTypeCA (org.codelibs.fess.es.config.cbean.ca.LabelTypeCA)44 SignificantTermsAggregationBuilder (org.opensearch.search.aggregations.bucket.terms.SignificantTermsAggregationBuilder)16 MissingAggregationBuilder (org.opensearch.search.aggregations.bucket.missing.MissingAggregationBuilder)11 IpRangeAggregationBuilder (org.opensearch.search.aggregations.bucket.range.IpRangeAggregationBuilder)11 TermsAggregationBuilder (org.opensearch.search.aggregations.bucket.terms.TermsAggregationBuilder)8 HistogramAggregationBuilder (org.opensearch.search.aggregations.bucket.histogram.HistogramAggregationBuilder)3 RangeAggregationBuilder (org.opensearch.search.aggregations.bucket.range.RangeAggregationBuilder)3 LabelTypeCQ (org.codelibs.fess.es.config.cbean.cq.LabelTypeCQ)1 BsLabelTypeCQ (org.codelibs.fess.es.config.cbean.cq.bs.BsLabelTypeCQ)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