Search in sources :

Example 6 with RangeAggregationBuilder

use of org.opensearch.search.aggregations.bucket.range.RangeAggregationBuilder in project fess by codelibs.

the class BsRelatedContentCA method setUpdatedTime_Range.

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

Example 7 with RangeAggregationBuilder

use of org.opensearch.search.aggregations.bucket.range.RangeAggregationBuilder in project fess by codelibs.

the class BsRequestHeaderCA method setCreatedTime_Range.

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

Example 8 with RangeAggregationBuilder

use of org.opensearch.search.aggregations.bucket.range.RangeAggregationBuilder 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 9 with RangeAggregationBuilder

use of org.opensearch.search.aggregations.bucket.range.RangeAggregationBuilder 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 10 with RangeAggregationBuilder

use of org.opensearch.search.aggregations.bucket.range.RangeAggregationBuilder 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)

Aggregations

IpRangeAggregationBuilder (org.opensearch.search.aggregations.bucket.range.IpRangeAggregationBuilder)92 RangeAggregationBuilder (org.opensearch.search.aggregations.bucket.range.RangeAggregationBuilder)92 FileConfigCA (org.codelibs.fess.es.config.cbean.ca.FileConfigCA)10 WebConfigCA (org.codelibs.fess.es.config.cbean.ca.WebConfigCA)10 DateRangeAggregationBuilder (org.opensearch.search.aggregations.bucket.range.DateRangeAggregationBuilder)9 ScheduledJobCA (org.codelibs.fess.es.config.cbean.ca.ScheduledJobCA)6 DataConfigCA (org.codelibs.fess.es.config.cbean.ca.DataConfigCA)5 SearchLogCA (org.codelibs.fess.es.log.cbean.ca.SearchLogCA)5 KeyMatchCA (org.codelibs.fess.es.config.cbean.ca.KeyMatchCA)4 AccessTokenCA (org.codelibs.fess.es.config.cbean.ca.AccessTokenCA)3 BoostDocumentRuleCA (org.codelibs.fess.es.config.cbean.ca.BoostDocumentRuleCA)3 DuplicateHostCA (org.codelibs.fess.es.config.cbean.ca.DuplicateHostCA)3 ElevateWordCA (org.codelibs.fess.es.config.cbean.ca.ElevateWordCA)3 FileAuthenticationCA (org.codelibs.fess.es.config.cbean.ca.FileAuthenticationCA)3 JobLogCA (org.codelibs.fess.es.config.cbean.ca.JobLogCA)3 LabelTypeCA (org.codelibs.fess.es.config.cbean.ca.LabelTypeCA)3 PathMappingCA (org.codelibs.fess.es.config.cbean.ca.PathMappingCA)3 RelatedContentCA (org.codelibs.fess.es.config.cbean.ca.RelatedContentCA)3 RoleTypeCA (org.codelibs.fess.es.config.cbean.ca.RoleTypeCA)3 WebAuthenticationCA (org.codelibs.fess.es.config.cbean.ca.WebAuthenticationCA)3