Search in sources :

Example 21 with LabelTypeCA

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

the class BsLabelTypeCA method setSortOrder_Range.

public void setSortOrder_Range(String name, ConditionOptionCall<RangeAggregationBuilder> opLambda, OperatorCall<BsLabelTypeCA> aggsLambda) {
    RangeAggregationBuilder builder = regRangeA(name, "sortOrder");
    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 22 with LabelTypeCA

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

the class BsLabelTypeCA method setExcludedPaths_SignificantTerms.

public void setExcludedPaths_SignificantTerms(String name, ConditionOptionCall<SignificantTermsAggregationBuilder> opLambda, OperatorCall<BsLabelTypeCA> aggsLambda) {
    SignificantTermsAggregationBuilder builder = regSignificantTermsA(name, "excludedPaths");
    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) LabelTypeCA(org.codelibs.fess.es.config.cbean.ca.LabelTypeCA)

Example 23 with LabelTypeCA

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

the class BsLabelTypeCA method setVirtualHost_IpRange.

public void setVirtualHost_IpRange(String name, ConditionOptionCall<IpRangeAggregationBuilder> opLambda, OperatorCall<BsLabelTypeCA> aggsLambda) {
    IpRangeAggregationBuilder builder = regIpRangeA(name, "virtualHost");
    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)

Example 24 with LabelTypeCA

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

the class BsLabelTypeCA method setValue_SignificantTerms.

public void setValue_SignificantTerms(String name, ConditionOptionCall<SignificantTermsAggregationBuilder> opLambda, OperatorCall<BsLabelTypeCA> aggsLambda) {
    SignificantTermsAggregationBuilder builder = regSignificantTermsA(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 : SignificantTermsAggregationBuilder(org.opensearch.search.aggregations.bucket.terms.SignificantTermsAggregationBuilder) LabelTypeCA(org.codelibs.fess.es.config.cbean.ca.LabelTypeCA)

Example 25 with LabelTypeCA

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

the class BsLabelTypeCA method setPermissions_SignificantTerms.

public void setPermissions_SignificantTerms(String name, ConditionOptionCall<SignificantTermsAggregationBuilder> opLambda, OperatorCall<BsLabelTypeCA> aggsLambda) {
    SignificantTermsAggregationBuilder builder = regSignificantTermsA(name, "permissions");
    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) 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