Search in sources :

Example 1 with DateHistogramAggregationBuilder

use of org.opensearch.search.aggregations.bucket.histogram.DateHistogramAggregationBuilder in project fess by codelibs.

the class BsUserInfoCA method setUpdatedAt_DateHistogram.

public void setUpdatedAt_DateHistogram(String name, ConditionOptionCall<DateHistogramAggregationBuilder> opLambda, OperatorCall<BsUserInfoCA> aggsLambda) {
    DateHistogramAggregationBuilder builder = regDateHistogramA(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 : DateHistogramAggregationBuilder(org.opensearch.search.aggregations.bucket.histogram.DateHistogramAggregationBuilder) UserInfoCA(org.codelibs.fess.es.log.cbean.ca.UserInfoCA)

Example 2 with DateHistogramAggregationBuilder

use of org.opensearch.search.aggregations.bucket.histogram.DateHistogramAggregationBuilder in project fess by codelibs.

the class BsUserInfoCA method setCreatedAt_DateHistogram.

public void setCreatedAt_DateHistogram(String name, ConditionOptionCall<DateHistogramAggregationBuilder> opLambda, OperatorCall<BsUserInfoCA> aggsLambda) {
    DateHistogramAggregationBuilder builder = regDateHistogramA(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 : DateHistogramAggregationBuilder(org.opensearch.search.aggregations.bucket.histogram.DateHistogramAggregationBuilder) UserInfoCA(org.codelibs.fess.es.log.cbean.ca.UserInfoCA)

Example 3 with DateHistogramAggregationBuilder

use of org.opensearch.search.aggregations.bucket.histogram.DateHistogramAggregationBuilder in project fess by codelibs.

the class EsAbstractConditionAggregation method regDateHistogramA.

protected DateHistogramAggregationBuilder regDateHistogramA(String name, String field) {
    DateHistogramAggregationBuilder builder = AggregationBuilders.dateHistogram(name).field(field);
    regA(builder);
    return builder;
}
Also used : DateHistogramAggregationBuilder(org.opensearch.search.aggregations.bucket.histogram.DateHistogramAggregationBuilder)

Example 4 with DateHistogramAggregationBuilder

use of org.opensearch.search.aggregations.bucket.histogram.DateHistogramAggregationBuilder in project fess by codelibs.

the class BsSearchLogCA method setRequestedAt_DateHistogram.

public void setRequestedAt_DateHistogram(String name, ConditionOptionCall<DateHistogramAggregationBuilder> opLambda, OperatorCall<BsSearchLogCA> aggsLambda) {
    DateHistogramAggregationBuilder builder = regDateHistogramA(name, "requestedAt");
    if (opLambda != null) {
        opLambda.callback(builder);
    }
    if (aggsLambda != null) {
        SearchLogCA ca = new SearchLogCA();
        aggsLambda.callback(ca);
        ca.getAggregationBuilderList().forEach(builder::subAggregation);
    }
}
Also used : DateHistogramAggregationBuilder(org.opensearch.search.aggregations.bucket.histogram.DateHistogramAggregationBuilder) SearchLogCA(org.codelibs.fess.es.log.cbean.ca.SearchLogCA)

Example 5 with DateHistogramAggregationBuilder

use of org.opensearch.search.aggregations.bucket.histogram.DateHistogramAggregationBuilder in project fess by codelibs.

the class BsFavoriteLogCA method setCreatedAt_DateHistogram.

public void setCreatedAt_DateHistogram(String name, ConditionOptionCall<DateHistogramAggregationBuilder> opLambda, OperatorCall<BsFavoriteLogCA> aggsLambda) {
    DateHistogramAggregationBuilder builder = regDateHistogramA(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 : DateHistogramAggregationBuilder(org.opensearch.search.aggregations.bucket.histogram.DateHistogramAggregationBuilder) FavoriteLogCA(org.codelibs.fess.es.log.cbean.ca.FavoriteLogCA)

Aggregations

DateHistogramAggregationBuilder (org.opensearch.search.aggregations.bucket.histogram.DateHistogramAggregationBuilder)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