Search in sources :

Example 6 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)

Example 7 with DateHistogramAggregationBuilder

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

the class BsClickLogCA method setRequestedAt_DateHistogram.

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

Example 8 with DateHistogramAggregationBuilder

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

the class BsClickLogCA method setQueryRequestedAt_DateHistogram.

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

Example 9 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)

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