use of org.opensearch.search.aggregations.bucket.range.RangeAggregationBuilder in project fess by codelibs.
the class BsAccessTokenCA method setUpdatedTime_Range.
public void setUpdatedTime_Range(String name, ConditionOptionCall<RangeAggregationBuilder> opLambda, OperatorCall<BsAccessTokenCA> aggsLambda) {
RangeAggregationBuilder builder = regRangeA(name, "updatedTime");
if (opLambda != null) {
opLambda.callback(builder);
}
if (aggsLambda != null) {
AccessTokenCA ca = new AccessTokenCA();
aggsLambda.callback(ca);
ca.getAggregationBuilderList().forEach(builder::subAggregation);
}
}
use of org.opensearch.search.aggregations.bucket.range.RangeAggregationBuilder in project fess by codelibs.
the class BsBoostDocumentRuleCA method setUpdatedTime_Range.
public void setUpdatedTime_Range(String name, ConditionOptionCall<RangeAggregationBuilder> opLambda, OperatorCall<BsBoostDocumentRuleCA> aggsLambda) {
RangeAggregationBuilder builder = regRangeA(name, "updatedTime");
if (opLambda != null) {
opLambda.callback(builder);
}
if (aggsLambda != null) {
BoostDocumentRuleCA ca = new BoostDocumentRuleCA();
aggsLambda.callback(ca);
ca.getAggregationBuilderList().forEach(builder::subAggregation);
}
}
use of org.opensearch.search.aggregations.bucket.range.RangeAggregationBuilder in project fess by codelibs.
the class BsBoostDocumentRuleCA method setCreatedTime_Range.
public void setCreatedTime_Range(String name, ConditionOptionCall<RangeAggregationBuilder> opLambda, OperatorCall<BsBoostDocumentRuleCA> aggsLambda) {
RangeAggregationBuilder builder = regRangeA(name, "createdTime");
if (opLambda != null) {
opLambda.callback(builder);
}
if (aggsLambda != null) {
BoostDocumentRuleCA ca = new BoostDocumentRuleCA();
aggsLambda.callback(ca);
ca.getAggregationBuilderList().forEach(builder::subAggregation);
}
}
use of org.opensearch.search.aggregations.bucket.range.RangeAggregationBuilder in project fess by codelibs.
the class BsCrawlingInfoCA method setCreatedTime_Range.
public void setCreatedTime_Range(String name, ConditionOptionCall<RangeAggregationBuilder> opLambda, OperatorCall<BsCrawlingInfoCA> aggsLambda) {
RangeAggregationBuilder builder = regRangeA(name, "createdTime");
if (opLambda != null) {
opLambda.callback(builder);
}
if (aggsLambda != null) {
CrawlingInfoCA ca = new CrawlingInfoCA();
aggsLambda.callback(ca);
ca.getAggregationBuilderList().forEach(builder::subAggregation);
}
}
use of org.opensearch.search.aggregations.bucket.range.RangeAggregationBuilder in project fess by codelibs.
the class BsCrawlingInfoCA method setExpiredTime_Range.
public void setExpiredTime_Range(String name, ConditionOptionCall<RangeAggregationBuilder> opLambda, OperatorCall<BsCrawlingInfoCA> aggsLambda) {
RangeAggregationBuilder builder = regRangeA(name, "expiredTime");
if (opLambda != null) {
opLambda.callback(builder);
}
if (aggsLambda != null) {
CrawlingInfoCA ca = new CrawlingInfoCA();
aggsLambda.callback(ca);
ca.getAggregationBuilderList().forEach(builder::subAggregation);
}
}
Aggregations