Search in sources :

Example 6 with RoleTypeCA

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

the class BsRoleTypeCA method setName_Terms.

public void setName_Terms(String name, ConditionOptionCall<TermsAggregationBuilder> opLambda, OperatorCall<BsRoleTypeCA> aggsLambda) {
    TermsAggregationBuilder builder = regTermsA(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 : 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)

Example 7 with RoleTypeCA

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

the class BsRoleTypeCA method setCreatedBy_Missing.

public void setCreatedBy_Missing(String name, ConditionOptionCall<MissingAggregationBuilder> opLambda, OperatorCall<BsRoleTypeCA> aggsLambda) {
    MissingAggregationBuilder builder = regMissingA(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 : RoleTypeCA(org.codelibs.fess.es.config.cbean.ca.RoleTypeCA) MissingAggregationBuilder(org.opensearch.search.aggregations.bucket.missing.MissingAggregationBuilder)

Example 8 with RoleTypeCA

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

the class BsRoleTypeCA method setCreatedTime_Range.

public void setCreatedTime_Range(String name, ConditionOptionCall<RangeAggregationBuilder> opLambda, OperatorCall<BsRoleTypeCA> aggsLambda) {
    RangeAggregationBuilder builder = regRangeA(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 : 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 9 with RoleTypeCA

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

the class BsRoleTypeCA method setUpdatedTime_Range.

public void setUpdatedTime_Range(String name, ConditionOptionCall<RangeAggregationBuilder> opLambda, OperatorCall<BsRoleTypeCA> aggsLambda) {
    RangeAggregationBuilder builder = regRangeA(name, "updatedTime");
    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 10 with RoleTypeCA

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

the class BsRoleTypeCA method setUpdatedTime_Missing.

public void setUpdatedTime_Missing(String name, ConditionOptionCall<MissingAggregationBuilder> opLambda, OperatorCall<BsRoleTypeCA> aggsLambda) {
    MissingAggregationBuilder builder = regMissingA(name, "updatedTime");
    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) MissingAggregationBuilder(org.opensearch.search.aggregations.bucket.missing.MissingAggregationBuilder)

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