use of org.codelibs.fess.es.config.cbean.ca.CrawlingInfoParamCA in project fess by codelibs.
the class BsCrawlingInfoParamCA method setCrawlingInfoId_Terms.
public void setCrawlingInfoId_Terms(String name, ConditionOptionCall<TermsAggregationBuilder> opLambda, OperatorCall<BsCrawlingInfoParamCA> aggsLambda) {
TermsAggregationBuilder builder = regTermsA(name, "crawlingInfoId");
if (opLambda != null) {
opLambda.callback(builder);
}
if (aggsLambda != null) {
CrawlingInfoParamCA ca = new CrawlingInfoParamCA();
aggsLambda.callback(ca);
ca.getAggregationBuilderList().forEach(builder::subAggregation);
}
}
use of org.codelibs.fess.es.config.cbean.ca.CrawlingInfoParamCA in project fess by codelibs.
the class BsCrawlingInfoParamCA method sampler.
public void sampler(String name, ConditionOptionCall<SamplerAggregationBuilder> opLambda, OperatorCall<BsCrawlingInfoParamCA> aggsLambda) {
SamplerAggregationBuilder builder = regSamplerA(name);
if (opLambda != null) {
opLambda.callback(builder);
}
if (aggsLambda != null) {
CrawlingInfoParamCA ca = new CrawlingInfoParamCA();
aggsLambda.callback(ca);
ca.getAggregationBuilderList().forEach(builder::subAggregation);
}
}
use of org.codelibs.fess.es.config.cbean.ca.CrawlingInfoParamCA in project fess by codelibs.
the class BsCrawlingInfoParamCA method setKey_Missing.
public void setKey_Missing(String name, ConditionOptionCall<MissingAggregationBuilder> opLambda, OperatorCall<BsCrawlingInfoParamCA> aggsLambda) {
MissingAggregationBuilder builder = regMissingA(name, "key");
if (opLambda != null) {
opLambda.callback(builder);
}
if (aggsLambda != null) {
CrawlingInfoParamCA ca = new CrawlingInfoParamCA();
aggsLambda.callback(ca);
ca.getAggregationBuilderList().forEach(builder::subAggregation);
}
}
Aggregations