Search in sources :

Example 6 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 7 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 8 with DateRangeAggregationBuilder

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

the class BsSearchLogCA method setRequestedAt_DateRange.

public void setRequestedAt_DateRange(String name, ConditionOptionCall<DateRangeAggregationBuilder> opLambda, OperatorCall<BsSearchLogCA> aggsLambda) {
    DateRangeAggregationBuilder builder = regDateRangeA(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 : DateRangeAggregationBuilder(org.opensearch.search.aggregations.bucket.range.DateRangeAggregationBuilder) SearchLogCA(org.codelibs.fess.es.log.cbean.ca.SearchLogCA)

Example 9 with DateRangeAggregationBuilder

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

the class BsClickLogCA method setRequestedAt_DateRange.

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

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