use of org.elasticsearch.search.aggregations.bucket.histogram.HistogramAggregationBuilder in project fess by codelibs.
the class BsSearchLogCA method setQueryOffset_Histogram.
public void setQueryOffset_Histogram(String name, ConditionOptionCall<HistogramAggregationBuilder> opLambda, OperatorCall<BsSearchLogCA> aggsLambda) {
HistogramAggregationBuilder builder = regHistogramA(name, "queryOffset");
if (opLambda != null) {
opLambda.callback(builder);
}
if (aggsLambda != null) {
SearchLogCA ca = new SearchLogCA();
aggsLambda.callback(ca);
ca.getAggregationBuilderList().forEach(builder::subAggregation);
}
}
use of org.elasticsearch.search.aggregations.bucket.histogram.HistogramAggregationBuilder in project fess by codelibs.
the class BsGroupCA method setGidNumber_Histogram.
public void setGidNumber_Histogram(String name, ConditionOptionCall<HistogramAggregationBuilder> opLambda, OperatorCall<BsGroupCA> aggsLambda) {
HistogramAggregationBuilder builder = regHistogramA(name, "gidNumber");
if (opLambda != null) {
opLambda.callback(builder);
}
if (aggsLambda != null) {
GroupCA ca = new GroupCA();
aggsLambda.callback(ca);
ca.getAggregationBuilderList().forEach(builder::subAggregation);
}
}
use of org.elasticsearch.search.aggregations.bucket.histogram.HistogramAggregationBuilder in project fess by codelibs.
the class EsAbstractConditionAggregation method regHistogramA.
protected HistogramAggregationBuilder regHistogramA(String name, String field) {
HistogramAggregationBuilder builder = AggregationBuilders.histogram(name).field(field);
regA(builder);
return builder;
}
use of org.elasticsearch.search.aggregations.bucket.histogram.HistogramAggregationBuilder in project fess by codelibs.
the class BsUserCA method setGidNumber_Histogram.
public void setGidNumber_Histogram(String name, ConditionOptionCall<HistogramAggregationBuilder> opLambda, OperatorCall<BsUserCA> aggsLambda) {
HistogramAggregationBuilder builder = regHistogramA(name, "gidNumber");
if (opLambda != null) {
opLambda.callback(builder);
}
if (aggsLambda != null) {
UserCA ca = new UserCA();
aggsLambda.callback(ca);
ca.getAggregationBuilderList().forEach(builder::subAggregation);
}
}
use of org.elasticsearch.search.aggregations.bucket.histogram.HistogramAggregationBuilder in project fess by codelibs.
the class EsAbstractConditionAggregation method regHistogramA.
protected HistogramAggregationBuilder regHistogramA(String name, String field) {
HistogramAggregationBuilder builder = AggregationBuilders.histogram(name).field(field);
regA(builder);
return builder;
}
Aggregations