Search in sources :

Example 1 with RoleTypeCA

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

the class BsRoleTypeCA method setName_IpRange.

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

Example 2 with RoleTypeCA

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

the class BsRoleTypeCA method setSortOrder_Range.

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

Example 3 with RoleTypeCA

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

the class BsRoleTypeCA method setCreatedTime_Histogram.

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

Example 4 with RoleTypeCA

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

the class BsRoleTypeCA method setUpdatedBy_SignificantTerms.

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

Example 5 with RoleTypeCA

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

the class BsRoleTypeCA method setCreatedBy_Terms.

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

Aggregations

RoleTypeCA (org.codelibs.fess.es.config.cbean.ca.RoleTypeCA)28 SignificantTermsAggregationBuilder (org.opensearch.search.aggregations.bucket.terms.SignificantTermsAggregationBuilder)8 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)4 HistogramAggregationBuilder (org.opensearch.search.aggregations.bucket.histogram.HistogramAggregationBuilder)3 RangeAggregationBuilder (org.opensearch.search.aggregations.bucket.range.RangeAggregationBuilder)3 RoleTypeCQ (org.codelibs.fess.es.config.cbean.cq.RoleTypeCQ)1 BsRoleTypeCQ (org.codelibs.fess.es.config.cbean.cq.bs.BsRoleTypeCQ)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