Search in sources :

Example 1 with DateRangeAggregationBuilder

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

the class EsAbstractConditionAggregation method regDateRangeA.

protected DateRangeAggregationBuilder regDateRangeA(String name, String field) {
    DateRangeAggregationBuilder builder = AggregationBuilders.dateRange(name).field(field);
    regA(builder);
    return builder;
}
Also used : DateRangeAggregationBuilder(org.opensearch.search.aggregations.bucket.range.DateRangeAggregationBuilder)

Example 2 with DateRangeAggregationBuilder

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

the class BsUserInfoCA method setUpdatedAt_DateRange.

public void setUpdatedAt_DateRange(String name, ConditionOptionCall<DateRangeAggregationBuilder> opLambda, OperatorCall<BsUserInfoCA> aggsLambda) {
    DateRangeAggregationBuilder builder = regDateRangeA(name, "updatedAt");
    if (opLambda != null) {
        opLambda.callback(builder);
    }
    if (aggsLambda != null) {
        UserInfoCA ca = new UserInfoCA();
        aggsLambda.callback(ca);
        ca.getAggregationBuilderList().forEach(builder::subAggregation);
    }
}
Also used : DateRangeAggregationBuilder(org.opensearch.search.aggregations.bucket.range.DateRangeAggregationBuilder) UserInfoCA(org.codelibs.fess.es.log.cbean.ca.UserInfoCA)

Example 3 with DateRangeAggregationBuilder

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

the class BsUserInfoCA method setCreatedAt_DateRange.

public void setCreatedAt_DateRange(String name, ConditionOptionCall<DateRangeAggregationBuilder> opLambda, OperatorCall<BsUserInfoCA> aggsLambda) {
    DateRangeAggregationBuilder builder = regDateRangeA(name, "createdAt");
    if (opLambda != null) {
        opLambda.callback(builder);
    }
    if (aggsLambda != null) {
        UserInfoCA ca = new UserInfoCA();
        aggsLambda.callback(ca);
        ca.getAggregationBuilderList().forEach(builder::subAggregation);
    }
}
Also used : DateRangeAggregationBuilder(org.opensearch.search.aggregations.bucket.range.DateRangeAggregationBuilder) UserInfoCA(org.codelibs.fess.es.log.cbean.ca.UserInfoCA)

Example 4 with DateRangeAggregationBuilder

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

the class BsClickLogCA method setQueryRequestedAt_DateRange.

public void setQueryRequestedAt_DateRange(String name, ConditionOptionCall<DateRangeAggregationBuilder> opLambda, OperatorCall<BsClickLogCA> aggsLambda) {
    DateRangeAggregationBuilder builder = regDateRangeA(name, "queryRequestedAt");
    if (opLambda != null) {
        opLambda.callback(builder);
    }
    if (aggsLambda != null) {
        ClickLogCA ca = new ClickLogCA();
        aggsLambda.callback(ca);
        ca.getAggregationBuilderList().forEach(builder::subAggregation);
    }
}
Also used : DateRangeAggregationBuilder(org.opensearch.search.aggregations.bucket.range.DateRangeAggregationBuilder) ClickLogCA(org.codelibs.fess.es.log.cbean.ca.ClickLogCA)

Example 5 with DateRangeAggregationBuilder

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

the class BsFavoriteLogCA method setCreatedAt_DateRange.

public void setCreatedAt_DateRange(String name, ConditionOptionCall<DateRangeAggregationBuilder> opLambda, OperatorCall<BsFavoriteLogCA> aggsLambda) {
    DateRangeAggregationBuilder builder = regDateRangeA(name, "createdAt");
    if (opLambda != null) {
        opLambda.callback(builder);
    }
    if (aggsLambda != null) {
        FavoriteLogCA ca = new FavoriteLogCA();
        aggsLambda.callback(ca);
        ca.getAggregationBuilderList().forEach(builder::subAggregation);
    }
}
Also used : DateRangeAggregationBuilder(org.opensearch.search.aggregations.bucket.range.DateRangeAggregationBuilder) FavoriteLogCA(org.codelibs.fess.es.log.cbean.ca.FavoriteLogCA)

Aggregations

DateRangeAggregationBuilder (org.opensearch.search.aggregations.bucket.range.DateRangeAggregationBuilder)9 ClickLogCA (org.codelibs.fess.es.log.cbean.ca.ClickLogCA)2 UserInfoCA (org.codelibs.fess.es.log.cbean.ca.UserInfoCA)2 FavoriteLogCA (org.codelibs.fess.es.log.cbean.ca.FavoriteLogCA)1 SearchLogCA (org.codelibs.fess.es.log.cbean.ca.SearchLogCA)1