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;
}
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;
}
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);
}
}
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);
}
}
Aggregations