use of org.elasticsearch.search.aggregations.bucket.histogram.HistogramAggregationBuilder in project fess by codelibs.
the class BsCrawlingInfoParamCA method setCreatedTime_Histogram.
public void setCreatedTime_Histogram(String name, ConditionOptionCall<HistogramAggregationBuilder> opLambda, OperatorCall<BsCrawlingInfoParamCA> aggsLambda) {
HistogramAggregationBuilder builder = regHistogramA(name, "createdTime");
if (opLambda != null) {
opLambda.callback(builder);
}
if (aggsLambda != null) {
CrawlingInfoParamCA ca = new CrawlingInfoParamCA();
aggsLambda.callback(ca);
ca.getAggregationBuilderList().forEach(builder::subAggregation);
}
}
use of org.elasticsearch.search.aggregations.bucket.histogram.HistogramAggregationBuilder in project fess by codelibs.
the class BsFileConfigCA method setUpdatedTime_Histogram.
public void setUpdatedTime_Histogram(String name, ConditionOptionCall<HistogramAggregationBuilder> opLambda, OperatorCall<BsFileConfigCA> aggsLambda) {
HistogramAggregationBuilder builder = regHistogramA(name, "updatedTime");
if (opLambda != null) {
opLambda.callback(builder);
}
if (aggsLambda != null) {
FileConfigCA ca = new FileConfigCA();
aggsLambda.callback(ca);
ca.getAggregationBuilderList().forEach(builder::subAggregation);
}
}
use of org.elasticsearch.search.aggregations.bucket.histogram.HistogramAggregationBuilder in project fess by codelibs.
the class BsFileConfigCA method setMaxAccessCount_Histogram.
public void setMaxAccessCount_Histogram(String name, ConditionOptionCall<HistogramAggregationBuilder> opLambda, OperatorCall<BsFileConfigCA> aggsLambda) {
HistogramAggregationBuilder builder = regHistogramA(name, "maxAccessCount");
if (opLambda != null) {
opLambda.callback(builder);
}
if (aggsLambda != null) {
FileConfigCA ca = new FileConfigCA();
aggsLambda.callback(ca);
ca.getAggregationBuilderList().forEach(builder::subAggregation);
}
}
use of org.elasticsearch.search.aggregations.bucket.histogram.HistogramAggregationBuilder in project fess by codelibs.
the class BsFileConfigCA method setTimeToLive_Histogram.
public void setTimeToLive_Histogram(String name, ConditionOptionCall<HistogramAggregationBuilder> opLambda, OperatorCall<BsFileConfigCA> aggsLambda) {
HistogramAggregationBuilder builder = regHistogramA(name, "timeToLive");
if (opLambda != null) {
opLambda.callback(builder);
}
if (aggsLambda != null) {
FileConfigCA ca = new FileConfigCA();
aggsLambda.callback(ca);
ca.getAggregationBuilderList().forEach(builder::subAggregation);
}
}
use of org.elasticsearch.search.aggregations.bucket.histogram.HistogramAggregationBuilder in project fess by codelibs.
the class BsWebConfigCA method setBoost_Histogram.
public void setBoost_Histogram(String name, ConditionOptionCall<HistogramAggregationBuilder> opLambda, OperatorCall<BsWebConfigCA> aggsLambda) {
HistogramAggregationBuilder builder = regHistogramA(name, "boost");
if (opLambda != null) {
opLambda.callback(builder);
}
if (aggsLambda != null) {
WebConfigCA ca = new WebConfigCA();
aggsLambda.callback(ca);
ca.getAggregationBuilderList().forEach(builder::subAggregation);
}
}
Aggregations