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