use of org.codelibs.fess.es.config.cbean.ca.BoostDocumentRuleCA in project fess by codelibs.
the class BsBoostDocumentRuleCA method setUrlExpr_IpRange.
public void setUrlExpr_IpRange(String name, ConditionOptionCall<IpRangeAggregationBuilder> opLambda, OperatorCall<BsBoostDocumentRuleCA> aggsLambda) {
IpRangeAggregationBuilder builder = regIpRangeA(name, "urlExpr");
if (opLambda != null) {
opLambda.callback(builder);
}
if (aggsLambda != null) {
BoostDocumentRuleCA ca = new BoostDocumentRuleCA();
aggsLambda.callback(ca);
ca.getAggregationBuilderList().forEach(builder::subAggregation);
}
}
use of org.codelibs.fess.es.config.cbean.ca.BoostDocumentRuleCA in project fess by codelibs.
the class BsBoostDocumentRuleCA method filter.
// ===================================================================================
// Aggregation Set
// =========
public void filter(String name, EsAbstractConditionQuery.OperatorCall<BsBoostDocumentRuleCQ> queryLambda, ConditionOptionCall<FilterAggregationBuilder> opLambda, OperatorCall<BsBoostDocumentRuleCA> aggsLambda) {
BoostDocumentRuleCQ cq = new BoostDocumentRuleCQ();
if (queryLambda != null) {
queryLambda.callback(cq);
}
FilterAggregationBuilder builder = regFilterA(name, cq.getQuery());
if (opLambda != null) {
opLambda.callback(builder);
}
if (aggsLambda != null) {
BoostDocumentRuleCA ca = new BoostDocumentRuleCA();
aggsLambda.callback(ca);
ca.getAggregationBuilderList().forEach(builder::subAggregation);
}
}
use of org.codelibs.fess.es.config.cbean.ca.BoostDocumentRuleCA in project fess by codelibs.
the class BsBoostDocumentRuleCA method setSortOrder_Range.
public void setSortOrder_Range(String name, ConditionOptionCall<RangeAggregationBuilder> opLambda, OperatorCall<BsBoostDocumentRuleCA> aggsLambda) {
RangeAggregationBuilder builder = regRangeA(name, "sortOrder");
if (opLambda != null) {
opLambda.callback(builder);
}
if (aggsLambda != null) {
BoostDocumentRuleCA ca = new BoostDocumentRuleCA();
aggsLambda.callback(ca);
ca.getAggregationBuilderList().forEach(builder::subAggregation);
}
}
use of org.codelibs.fess.es.config.cbean.ca.BoostDocumentRuleCA in project fess by codelibs.
the class BsBoostDocumentRuleCA method setBoostExpr_Missing.
public void setBoostExpr_Missing(String name, ConditionOptionCall<MissingAggregationBuilder> opLambda, OperatorCall<BsBoostDocumentRuleCA> aggsLambda) {
MissingAggregationBuilder builder = regMissingA(name, "boostExpr");
if (opLambda != null) {
opLambda.callback(builder);
}
if (aggsLambda != null) {
BoostDocumentRuleCA ca = new BoostDocumentRuleCA();
aggsLambda.callback(ca);
ca.getAggregationBuilderList().forEach(builder::subAggregation);
}
}
use of org.codelibs.fess.es.config.cbean.ca.BoostDocumentRuleCA in project fess by codelibs.
the class BsBoostDocumentRuleCA method setCreatedTime_Histogram.
public void setCreatedTime_Histogram(String name, ConditionOptionCall<HistogramAggregationBuilder> opLambda, OperatorCall<BsBoostDocumentRuleCA> aggsLambda) {
HistogramAggregationBuilder builder = regHistogramA(name, "createdTime");
if (opLambda != null) {
opLambda.callback(builder);
}
if (aggsLambda != null) {
BoostDocumentRuleCA ca = new BoostDocumentRuleCA();
aggsLambda.callback(ca);
ca.getAggregationBuilderList().forEach(builder::subAggregation);
}
}
Aggregations