use of org.opensearch.search.aggregations.bucket.range.RangeAggregationBuilder in project fess by codelibs.
the class BsKeyMatchCA method setCreatedTime_Range.
public void setCreatedTime_Range(String name, ConditionOptionCall<RangeAggregationBuilder> opLambda, OperatorCall<BsKeyMatchCA> aggsLambda) {
RangeAggregationBuilder builder = regRangeA(name, "createdTime");
if (opLambda != null) {
opLambda.callback(builder);
}
if (aggsLambda != null) {
KeyMatchCA ca = new KeyMatchCA();
aggsLambda.callback(ca);
ca.getAggregationBuilderList().forEach(builder::subAggregation);
}
}
use of org.opensearch.search.aggregations.bucket.range.RangeAggregationBuilder in project fess by codelibs.
the class BsJobLogCA method setLastUpdated_Range.
public void setLastUpdated_Range(String name, ConditionOptionCall<RangeAggregationBuilder> opLambda, OperatorCall<BsJobLogCA> aggsLambda) {
RangeAggregationBuilder builder = regRangeA(name, "lastUpdated");
if (opLambda != null) {
opLambda.callback(builder);
}
if (aggsLambda != null) {
JobLogCA ca = new JobLogCA();
aggsLambda.callback(ca);
ca.getAggregationBuilderList().forEach(builder::subAggregation);
}
}
use of org.opensearch.search.aggregations.bucket.range.RangeAggregationBuilder in project fess by codelibs.
the class BsFileConfigCA method setDepth_Range.
public void setDepth_Range(String name, ConditionOptionCall<RangeAggregationBuilder> opLambda, OperatorCall<BsFileConfigCA> aggsLambda) {
RangeAggregationBuilder builder = regRangeA(name, "depth");
if (opLambda != null) {
opLambda.callback(builder);
}
if (aggsLambda != null) {
FileConfigCA ca = new FileConfigCA();
aggsLambda.callback(ca);
ca.getAggregationBuilderList().forEach(builder::subAggregation);
}
}
use of org.opensearch.search.aggregations.bucket.range.RangeAggregationBuilder in project fess by codelibs.
the class BsFileConfigCA method setSortOrder_Range.
public void setSortOrder_Range(String name, ConditionOptionCall<RangeAggregationBuilder> opLambda, OperatorCall<BsFileConfigCA> aggsLambda) {
RangeAggregationBuilder builder = regRangeA(name, "sortOrder");
if (opLambda != null) {
opLambda.callback(builder);
}
if (aggsLambda != null) {
FileConfigCA ca = new FileConfigCA();
aggsLambda.callback(ca);
ca.getAggregationBuilderList().forEach(builder::subAggregation);
}
}
use of org.opensearch.search.aggregations.bucket.range.RangeAggregationBuilder in project fess by codelibs.
the class BsFileConfigCA method setIntervalTime_Range.
public void setIntervalTime_Range(String name, ConditionOptionCall<RangeAggregationBuilder> opLambda, OperatorCall<BsFileConfigCA> aggsLambda) {
RangeAggregationBuilder builder = regRangeA(name, "intervalTime");
if (opLambda != null) {
opLambda.callback(builder);
}
if (aggsLambda != null) {
FileConfigCA ca = new FileConfigCA();
aggsLambda.callback(ca);
ca.getAggregationBuilderList().forEach(builder::subAggregation);
}
}
Aggregations