use of org.codelibs.fess.es.config.cbean.ca.RelatedQueryCA in project fess by codelibs.
the class BsRelatedQueryCA method setQueries_Missing.
public void setQueries_Missing(String name, ConditionOptionCall<MissingAggregationBuilder> opLambda, OperatorCall<BsRelatedQueryCA> aggsLambda) {
MissingAggregationBuilder builder = regMissingA(name, "queries");
if (opLambda != null) {
opLambda.callback(builder);
}
if (aggsLambda != null) {
RelatedQueryCA ca = new RelatedQueryCA();
aggsLambda.callback(ca);
ca.getAggregationBuilderList().forEach(builder::subAggregation);
}
}
use of org.codelibs.fess.es.config.cbean.ca.RelatedQueryCA in project fess by codelibs.
the class BsRelatedQueryCA method setUpdatedBy_Missing.
public void setUpdatedBy_Missing(String name, ConditionOptionCall<MissingAggregationBuilder> opLambda, OperatorCall<BsRelatedQueryCA> aggsLambda) {
MissingAggregationBuilder builder = regMissingA(name, "updatedBy");
if (opLambda != null) {
opLambda.callback(builder);
}
if (aggsLambda != null) {
RelatedQueryCA ca = new RelatedQueryCA();
aggsLambda.callback(ca);
ca.getAggregationBuilderList().forEach(builder::subAggregation);
}
}
use of org.codelibs.fess.es.config.cbean.ca.RelatedQueryCA in project fess by codelibs.
the class BsRelatedQueryCA method filter.
// ===================================================================================
// Aggregation Set
// =========
public void filter(String name, EsAbstractConditionQuery.OperatorCall<BsRelatedQueryCQ> queryLambda, ConditionOptionCall<FilterAggregationBuilder> opLambda, OperatorCall<BsRelatedQueryCA> aggsLambda) {
RelatedQueryCQ cq = new RelatedQueryCQ();
if (queryLambda != null) {
queryLambda.callback(cq);
}
FilterAggregationBuilder builder = regFilterA(name, cq.getQuery());
if (opLambda != null) {
opLambda.callback(builder);
}
if (aggsLambda != null) {
RelatedQueryCA ca = new RelatedQueryCA();
aggsLambda.callback(ca);
ca.getAggregationBuilderList().forEach(builder::subAggregation);
}
}
use of org.codelibs.fess.es.config.cbean.ca.RelatedQueryCA in project fess by codelibs.
the class BsRelatedQueryCA method setQueries_Terms.
public void setQueries_Terms(String name, ConditionOptionCall<TermsAggregationBuilder> opLambda, OperatorCall<BsRelatedQueryCA> aggsLambda) {
TermsAggregationBuilder builder = regTermsA(name, "queries");
if (opLambda != null) {
opLambda.callback(builder);
}
if (aggsLambda != null) {
RelatedQueryCA ca = new RelatedQueryCA();
aggsLambda.callback(ca);
ca.getAggregationBuilderList().forEach(builder::subAggregation);
}
}
Aggregations