use of org.codelibs.fess.es.config.cbean.ca.RelatedQueryCA in project fess by codelibs.
the class BsRelatedQueryCA method setVirtualHost_IpRange.
public void setVirtualHost_IpRange(String name, ConditionOptionCall<IpRangeAggregationBuilder> opLambda, OperatorCall<BsRelatedQueryCA> aggsLambda) {
IpRangeAggregationBuilder builder = regIpRangeA(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 setCreatedTime_Range.
public void setCreatedTime_Range(String name, ConditionOptionCall<RangeAggregationBuilder> opLambda, OperatorCall<BsRelatedQueryCA> aggsLambda) {
RangeAggregationBuilder builder = regRangeA(name, "createdTime");
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 setTerm_Missing.
public void setTerm_Missing(String name, ConditionOptionCall<MissingAggregationBuilder> opLambda, OperatorCall<BsRelatedQueryCA> aggsLambda) {
MissingAggregationBuilder builder = regMissingA(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 global.
public void global(String name, ConditionOptionCall<GlobalAggregationBuilder> opLambda, OperatorCall<BsRelatedQueryCA> aggsLambda) {
GlobalAggregationBuilder builder = regGlobalA(name);
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 sampler.
public void sampler(String name, ConditionOptionCall<SamplerAggregationBuilder> opLambda, OperatorCall<BsRelatedQueryCA> aggsLambda) {
SamplerAggregationBuilder builder = regSamplerA(name);
if (opLambda != null) {
opLambda.callback(builder);
}
if (aggsLambda != null) {
RelatedQueryCA ca = new RelatedQueryCA();
aggsLambda.callback(ca);
ca.getAggregationBuilderList().forEach(builder::subAggregation);
}
}
Aggregations