Search in sources :

Example 16 with RelatedQueryCA

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);
    }
}
Also used : IpRangeAggregationBuilder(org.opensearch.search.aggregations.bucket.range.IpRangeAggregationBuilder) RelatedQueryCA(org.codelibs.fess.es.config.cbean.ca.RelatedQueryCA)

Example 17 with RelatedQueryCA

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);
    }
}
Also used : RelatedQueryCA(org.codelibs.fess.es.config.cbean.ca.RelatedQueryCA) RangeAggregationBuilder(org.opensearch.search.aggregations.bucket.range.RangeAggregationBuilder) IpRangeAggregationBuilder(org.opensearch.search.aggregations.bucket.range.IpRangeAggregationBuilder)

Example 18 with RelatedQueryCA

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);
    }
}
Also used : MissingAggregationBuilder(org.opensearch.search.aggregations.bucket.missing.MissingAggregationBuilder) RelatedQueryCA(org.codelibs.fess.es.config.cbean.ca.RelatedQueryCA)

Example 19 with RelatedQueryCA

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);
    }
}
Also used : RelatedQueryCA(org.codelibs.fess.es.config.cbean.ca.RelatedQueryCA) GlobalAggregationBuilder(org.opensearch.search.aggregations.bucket.global.GlobalAggregationBuilder)

Example 20 with RelatedQueryCA

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);
    }
}
Also used : SamplerAggregationBuilder(org.opensearch.search.aggregations.bucket.sampler.SamplerAggregationBuilder) RelatedQueryCA(org.codelibs.fess.es.config.cbean.ca.RelatedQueryCA)

Aggregations

RelatedQueryCA (org.codelibs.fess.es.config.cbean.ca.RelatedQueryCA)29 SignificantTermsAggregationBuilder (org.opensearch.search.aggregations.bucket.terms.SignificantTermsAggregationBuilder)10 MissingAggregationBuilder (org.opensearch.search.aggregations.bucket.missing.MissingAggregationBuilder)7 IpRangeAggregationBuilder (org.opensearch.search.aggregations.bucket.range.IpRangeAggregationBuilder)7 TermsAggregationBuilder (org.opensearch.search.aggregations.bucket.terms.TermsAggregationBuilder)5 HistogramAggregationBuilder (org.opensearch.search.aggregations.bucket.histogram.HistogramAggregationBuilder)2 RangeAggregationBuilder (org.opensearch.search.aggregations.bucket.range.RangeAggregationBuilder)2 RelatedQueryCQ (org.codelibs.fess.es.config.cbean.cq.RelatedQueryCQ)1 BsRelatedQueryCQ (org.codelibs.fess.es.config.cbean.cq.bs.BsRelatedQueryCQ)1 FilterAggregationBuilder (org.opensearch.search.aggregations.bucket.filter.FilterAggregationBuilder)1 GlobalAggregationBuilder (org.opensearch.search.aggregations.bucket.global.GlobalAggregationBuilder)1 SamplerAggregationBuilder (org.opensearch.search.aggregations.bucket.sampler.SamplerAggregationBuilder)1