use of org.codelibs.fess.es.config.cbean.ca.BadWordCA in project fess by codelibs.
the class BsBadWordCA method setCreatedTime_Range.
public void setCreatedTime_Range(String name, ConditionOptionCall<RangeAggregationBuilder> opLambda, OperatorCall<BsBadWordCA> aggsLambda) {
RangeAggregationBuilder builder = regRangeA(name, "createdTime");
if (opLambda != null) {
opLambda.callback(builder);
}
if (aggsLambda != null) {
BadWordCA ca = new BadWordCA();
aggsLambda.callback(ca);
ca.getAggregationBuilderList().forEach(builder::subAggregation);
}
}
use of org.codelibs.fess.es.config.cbean.ca.BadWordCA in project fess by codelibs.
the class BsBadWordCA method setTargetRole_Missing.
public void setTargetRole_Missing(String name, ConditionOptionCall<MissingAggregationBuilder> opLambda, OperatorCall<BsBadWordCA> aggsLambda) {
MissingAggregationBuilder builder = regMissingA(name, "targetRole");
if (opLambda != null) {
opLambda.callback(builder);
}
if (aggsLambda != null) {
BadWordCA ca = new BadWordCA();
aggsLambda.callback(ca);
ca.getAggregationBuilderList().forEach(builder::subAggregation);
}
}
use of org.codelibs.fess.es.config.cbean.ca.BadWordCA in project fess by codelibs.
the class BsBadWordCA method setTargetLabel_SignificantTerms.
public void setTargetLabel_SignificantTerms(String name, ConditionOptionCall<SignificantTermsAggregationBuilder> opLambda, OperatorCall<BsBadWordCA> aggsLambda) {
SignificantTermsAggregationBuilder builder = regSignificantTermsA(name, "targetLabel");
if (opLambda != null) {
opLambda.callback(builder);
}
if (aggsLambda != null) {
BadWordCA ca = new BadWordCA();
aggsLambda.callback(ca);
ca.getAggregationBuilderList().forEach(builder::subAggregation);
}
}
use of org.codelibs.fess.es.config.cbean.ca.BadWordCA in project fess by codelibs.
the class BsBadWordCA method setTargetRole_SignificantTerms.
public void setTargetRole_SignificantTerms(String name, ConditionOptionCall<SignificantTermsAggregationBuilder> opLambda, OperatorCall<BsBadWordCA> aggsLambda) {
SignificantTermsAggregationBuilder builder = regSignificantTermsA(name, "targetRole");
if (opLambda != null) {
opLambda.callback(builder);
}
if (aggsLambda != null) {
BadWordCA ca = new BadWordCA();
aggsLambda.callback(ca);
ca.getAggregationBuilderList().forEach(builder::subAggregation);
}
}
Aggregations