use of org.codelibs.fess.es.config.cbean.ca.CrawlingInfoParamCA in project fess by codelibs.
the class BsCrawlingInfoParamCA method setKey_Terms.
public void setKey_Terms(String name, ConditionOptionCall<TermsAggregationBuilder> opLambda, OperatorCall<BsCrawlingInfoParamCA> aggsLambda) {
TermsAggregationBuilder builder = regTermsA(name, "key");
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 filter.
// ===================================================================================
// Aggregation Set
// =========
public void filter(String name, EsAbstractConditionQuery.OperatorCall<BsCrawlingInfoParamCQ> queryLambda, ConditionOptionCall<FilterAggregationBuilder> opLambda, OperatorCall<BsCrawlingInfoParamCA> aggsLambda) {
CrawlingInfoParamCQ cq = new CrawlingInfoParamCQ();
if (queryLambda != null) {
queryLambda.callback(cq);
}
FilterAggregationBuilder builder = regFilterA(name, cq.getQuery());
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 setCreatedTime_Histogram.
public void setCreatedTime_Histogram(String name, ConditionOptionCall<HistogramAggregationBuilder> opLambda, OperatorCall<BsCrawlingInfoParamCA> aggsLambda) {
HistogramAggregationBuilder builder = regHistogramA(name, "createdTime");
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 setCreatedTime_Missing.
public void setCreatedTime_Missing(String name, ConditionOptionCall<MissingAggregationBuilder> opLambda, OperatorCall<BsCrawlingInfoParamCA> aggsLambda) {
MissingAggregationBuilder builder = regMissingA(name, "createdTime");
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 setValue_Missing.
public void setValue_Missing(String name, ConditionOptionCall<MissingAggregationBuilder> opLambda, OperatorCall<BsCrawlingInfoParamCA> aggsLambda) {
MissingAggregationBuilder builder = regMissingA(name, "value");
if (opLambda != null) {
opLambda.callback(builder);
}
if (aggsLambda != null) {
CrawlingInfoParamCA ca = new CrawlingInfoParamCA();
aggsLambda.callback(ca);
ca.getAggregationBuilderList().forEach(builder::subAggregation);
}
}
Aggregations