use of org.opensearch.search.aggregations.bucket.terms.TermsAggregationBuilder in project fess by codelibs.
the class BsJobLogCA method setTarget_Terms.
public void setTarget_Terms(String name, ConditionOptionCall<TermsAggregationBuilder> opLambda, OperatorCall<BsJobLogCA> aggsLambda) {
TermsAggregationBuilder builder = regTermsA(name, "target");
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.terms.TermsAggregationBuilder in project fess by codelibs.
the class BsRelatedQueryCA method setTerm_Terms.
public void setTerm_Terms(String name, ConditionOptionCall<TermsAggregationBuilder> opLambda, OperatorCall<BsRelatedQueryCA> aggsLambda) {
TermsAggregationBuilder builder = regTermsA(name, "term");
if (opLambda != null) {
opLambda.callback(builder);
}
if (aggsLambda != null) {
RelatedQueryCA ca = new RelatedQueryCA();
aggsLambda.callback(ca);
ca.getAggregationBuilderList().forEach(builder::subAggregation);
}
}
use of org.opensearch.search.aggregations.bucket.terms.TermsAggregationBuilder in project fess by codelibs.
the class BsRequestHeaderCA method setValue_Terms.
public void setValue_Terms(String name, ConditionOptionCall<TermsAggregationBuilder> opLambda, OperatorCall<BsRequestHeaderCA> aggsLambda) {
TermsAggregationBuilder builder = regTermsA(name, "value");
if (opLambda != null) {
opLambda.callback(builder);
}
if (aggsLambda != null) {
RequestHeaderCA ca = new RequestHeaderCA();
aggsLambda.callback(ca);
ca.getAggregationBuilderList().forEach(builder::subAggregation);
}
}
use of org.opensearch.search.aggregations.bucket.terms.TermsAggregationBuilder in project fess by codelibs.
the class BsRoleTypeCA method setCreatedBy_Terms.
public void setCreatedBy_Terms(String name, ConditionOptionCall<TermsAggregationBuilder> opLambda, OperatorCall<BsRoleTypeCA> aggsLambda) {
TermsAggregationBuilder builder = regTermsA(name, "createdBy");
if (opLambda != null) {
opLambda.callback(builder);
}
if (aggsLambda != null) {
RoleTypeCA ca = new RoleTypeCA();
aggsLambda.callback(ca);
ca.getAggregationBuilderList().forEach(builder::subAggregation);
}
}
use of org.opensearch.search.aggregations.bucket.terms.TermsAggregationBuilder in project fess by codelibs.
the class BsRoleTypeCA method setName_Terms.
public void setName_Terms(String name, ConditionOptionCall<TermsAggregationBuilder> opLambda, OperatorCall<BsRoleTypeCA> aggsLambda) {
TermsAggregationBuilder builder = regTermsA(name, "name");
if (opLambda != null) {
opLambda.callback(builder);
}
if (aggsLambda != null) {
RoleTypeCA ca = new RoleTypeCA();
aggsLambda.callback(ca);
ca.getAggregationBuilderList().forEach(builder::subAggregation);
}
}
Aggregations