use of org.opensearch.search.aggregations.bucket.missing.MissingAggregationBuilder in project fess by codelibs.
the class EsAbstractConditionAggregation method regMissingA.
protected MissingAggregationBuilder regMissingA(String name, String field) {
MissingAggregationBuilder builder = AggregationBuilders.missing(name).field(field);
regA(builder);
return builder;
}
use of org.opensearch.search.aggregations.bucket.missing.MissingAggregationBuilder in project fess by codelibs.
the class BsPathMappingCA method setUpdatedTime_Missing.
public void setUpdatedTime_Missing(String name, ConditionOptionCall<MissingAggregationBuilder> opLambda, OperatorCall<BsPathMappingCA> aggsLambda) {
MissingAggregationBuilder builder = regMissingA(name, "updatedTime");
if (opLambda != null) {
opLambda.callback(builder);
}
if (aggsLambda != null) {
PathMappingCA ca = new PathMappingCA();
aggsLambda.callback(ca);
ca.getAggregationBuilderList().forEach(builder::subAggregation);
}
}
use of org.opensearch.search.aggregations.bucket.missing.MissingAggregationBuilder in project fess by codelibs.
the class BsPathMappingCA method setCreatedTime_Missing.
public void setCreatedTime_Missing(String name, ConditionOptionCall<MissingAggregationBuilder> opLambda, OperatorCall<BsPathMappingCA> aggsLambda) {
MissingAggregationBuilder builder = regMissingA(name, "createdTime");
if (opLambda != null) {
opLambda.callback(builder);
}
if (aggsLambda != null) {
PathMappingCA ca = new PathMappingCA();
aggsLambda.callback(ca);
ca.getAggregationBuilderList().forEach(builder::subAggregation);
}
}
use of org.opensearch.search.aggregations.bucket.missing.MissingAggregationBuilder in project fess by codelibs.
the class BsPathMappingCA method setRegex_Missing.
public void setRegex_Missing(String name, ConditionOptionCall<MissingAggregationBuilder> opLambda, OperatorCall<BsPathMappingCA> aggsLambda) {
MissingAggregationBuilder builder = regMissingA(name, "regex");
if (opLambda != null) {
opLambda.callback(builder);
}
if (aggsLambda != null) {
PathMappingCA ca = new PathMappingCA();
aggsLambda.callback(ca);
ca.getAggregationBuilderList().forEach(builder::subAggregation);
}
}
use of org.opensearch.search.aggregations.bucket.missing.MissingAggregationBuilder in project fess by codelibs.
the class BsPathMappingCA method setProcessType_Missing.
public void setProcessType_Missing(String name, ConditionOptionCall<MissingAggregationBuilder> opLambda, OperatorCall<BsPathMappingCA> aggsLambda) {
MissingAggregationBuilder builder = regMissingA(name, "processType");
if (opLambda != null) {
opLambda.callback(builder);
}
if (aggsLambda != null) {
PathMappingCA ca = new PathMappingCA();
aggsLambda.callback(ca);
ca.getAggregationBuilderList().forEach(builder::subAggregation);
}
}
Aggregations