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