use of org.codelibs.fess.es.config.cbean.ca.RelatedQueryCA in project fess by codelibs.
the class BsRelatedQueryCA method setTerm_Terms.
public void setTerm_Terms(String name, ConditionOptionCall<TermsAggregationBuilder> opLambda, OperatorCall<BsRelatedQueryCA> aggsLambda) {
TermsAggregationBuilder builder = regTermsA(name, "term");
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_SignificantTerms.
public void setQueries_SignificantTerms(String name, ConditionOptionCall<SignificantTermsAggregationBuilder> opLambda, OperatorCall<BsRelatedQueryCA> aggsLambda) {
SignificantTermsAggregationBuilder builder = regSignificantTermsA(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 setCreatedBy_SignificantTerms.
public void setCreatedBy_SignificantTerms(String name, ConditionOptionCall<SignificantTermsAggregationBuilder> opLambda, OperatorCall<BsRelatedQueryCA> aggsLambda) {
SignificantTermsAggregationBuilder builder = regSignificantTermsA(name, "createdBy");
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 setVirtualHost_Terms.
public void setVirtualHost_Terms(String name, ConditionOptionCall<TermsAggregationBuilder> opLambda, OperatorCall<BsRelatedQueryCA> aggsLambda) {
TermsAggregationBuilder builder = regTermsA(name, "virtualHost");
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 setUpdatedTime_Histogram.
public void setUpdatedTime_Histogram(String name, ConditionOptionCall<HistogramAggregationBuilder> opLambda, OperatorCall<BsRelatedQueryCA> aggsLambda) {
HistogramAggregationBuilder builder = regHistogramA(name, "updatedTime");
if (opLambda != null) {
opLambda.callback(builder);
}
if (aggsLambda != null) {
RelatedQueryCA ca = new RelatedQueryCA();
aggsLambda.callback(ca);
ca.getAggregationBuilderList().forEach(builder::subAggregation);
}
}
Aggregations