use of org.codelibs.fess.es.config.cbean.ca.LabelToRoleCA in project fess by codelibs.
the class BsLabelToRoleCA method setLabelTypeId_SignificantTerms.
public void setLabelTypeId_SignificantTerms(String name, ConditionOptionCall<SignificantTermsAggregationBuilder> opLambda, OperatorCall<BsLabelToRoleCA> aggsLambda) {
SignificantTermsAggregationBuilder builder = regSignificantTermsA(name, "labelTypeId");
if (opLambda != null) {
opLambda.callback(builder);
}
if (aggsLambda != null) {
LabelToRoleCA ca = new LabelToRoleCA();
aggsLambda.callback(ca);
ca.getAggregationBuilderList().forEach(builder::subAggregation);
}
}
use of org.codelibs.fess.es.config.cbean.ca.LabelToRoleCA in project fess by codelibs.
the class BsLabelToRoleCA method sampler.
public void sampler(String name, ConditionOptionCall<SamplerAggregationBuilder> opLambda, OperatorCall<BsLabelToRoleCA> aggsLambda) {
SamplerAggregationBuilder builder = regSamplerA(name);
if (opLambda != null) {
opLambda.callback(builder);
}
if (aggsLambda != null) {
LabelToRoleCA ca = new LabelToRoleCA();
aggsLambda.callback(ca);
ca.getAggregationBuilderList().forEach(builder::subAggregation);
}
}
use of org.codelibs.fess.es.config.cbean.ca.LabelToRoleCA in project fess by codelibs.
the class BsLabelToRoleCA method setRoleTypeId_Missing.
public void setRoleTypeId_Missing(String name, ConditionOptionCall<MissingAggregationBuilder> opLambda, OperatorCall<BsLabelToRoleCA> aggsLambda) {
MissingAggregationBuilder builder = regMissingA(name, "roleTypeId");
if (opLambda != null) {
opLambda.callback(builder);
}
if (aggsLambda != null) {
LabelToRoleCA ca = new LabelToRoleCA();
aggsLambda.callback(ca);
ca.getAggregationBuilderList().forEach(builder::subAggregation);
}
}
use of org.codelibs.fess.es.config.cbean.ca.LabelToRoleCA in project fess by codelibs.
the class BsLabelToRoleCA method global.
public void global(String name, ConditionOptionCall<GlobalAggregationBuilder> opLambda, OperatorCall<BsLabelToRoleCA> aggsLambda) {
GlobalAggregationBuilder builder = regGlobalA(name);
if (opLambda != null) {
opLambda.callback(builder);
}
if (aggsLambda != null) {
LabelToRoleCA ca = new LabelToRoleCA();
aggsLambda.callback(ca);
ca.getAggregationBuilderList().forEach(builder::subAggregation);
}
}
use of org.codelibs.fess.es.config.cbean.ca.LabelToRoleCA in project fess by codelibs.
the class BsLabelToRoleCA method setRoleTypeId_SignificantTerms.
public void setRoleTypeId_SignificantTerms(String name, ConditionOptionCall<SignificantTermsAggregationBuilder> opLambda, OperatorCall<BsLabelToRoleCA> aggsLambda) {
SignificantTermsAggregationBuilder builder = regSignificantTermsA(name, "roleTypeId");
if (opLambda != null) {
opLambda.callback(builder);
}
if (aggsLambda != null) {
LabelToRoleCA ca = new LabelToRoleCA();
aggsLambda.callback(ca);
ca.getAggregationBuilderList().forEach(builder::subAggregation);
}
}
Aggregations