Search in sources :

Example 1 with RelatedContentCA

use of org.codelibs.fess.es.config.cbean.ca.RelatedContentCA in project fess by codelibs.

the class BsRelatedContentCA method setSortOrder_Missing.

public void setSortOrder_Missing(String name, ConditionOptionCall<MissingAggregationBuilder> opLambda, OperatorCall<BsRelatedContentCA> aggsLambda) {
    MissingAggregationBuilder builder = regMissingA(name, "sortOrder");
    if (opLambda != null) {
        opLambda.callback(builder);
    }
    if (aggsLambda != null) {
        RelatedContentCA ca = new RelatedContentCA();
        aggsLambda.callback(ca);
        ca.getAggregationBuilderList().forEach(builder::subAggregation);
    }
}
Also used : RelatedContentCA(org.codelibs.fess.es.config.cbean.ca.RelatedContentCA) MissingAggregationBuilder(org.opensearch.search.aggregations.bucket.missing.MissingAggregationBuilder)

Example 2 with RelatedContentCA

use of org.codelibs.fess.es.config.cbean.ca.RelatedContentCA in project fess by codelibs.

the class BsRelatedContentCA method sampler.

public void sampler(String name, ConditionOptionCall<SamplerAggregationBuilder> opLambda, OperatorCall<BsRelatedContentCA> aggsLambda) {
    SamplerAggregationBuilder builder = regSamplerA(name);
    if (opLambda != null) {
        opLambda.callback(builder);
    }
    if (aggsLambda != null) {
        RelatedContentCA ca = new RelatedContentCA();
        aggsLambda.callback(ca);
        ca.getAggregationBuilderList().forEach(builder::subAggregation);
    }
}
Also used : RelatedContentCA(org.codelibs.fess.es.config.cbean.ca.RelatedContentCA) SamplerAggregationBuilder(org.opensearch.search.aggregations.bucket.sampler.SamplerAggregationBuilder)

Example 3 with RelatedContentCA

use of org.codelibs.fess.es.config.cbean.ca.RelatedContentCA in project fess by codelibs.

the class BsRelatedContentCA method setVirtualHost_SignificantTerms.

public void setVirtualHost_SignificantTerms(String name, ConditionOptionCall<SignificantTermsAggregationBuilder> opLambda, OperatorCall<BsRelatedContentCA> aggsLambda) {
    SignificantTermsAggregationBuilder builder = regSignificantTermsA(name, "virtualHost");
    if (opLambda != null) {
        opLambda.callback(builder);
    }
    if (aggsLambda != null) {
        RelatedContentCA ca = new RelatedContentCA();
        aggsLambda.callback(ca);
        ca.getAggregationBuilderList().forEach(builder::subAggregation);
    }
}
Also used : RelatedContentCA(org.codelibs.fess.es.config.cbean.ca.RelatedContentCA) SignificantTermsAggregationBuilder(org.opensearch.search.aggregations.bucket.terms.SignificantTermsAggregationBuilder)

Example 4 with RelatedContentCA

use of org.codelibs.fess.es.config.cbean.ca.RelatedContentCA in project fess by codelibs.

the class BsRelatedContentCA method global.

public void global(String name, ConditionOptionCall<GlobalAggregationBuilder> opLambda, OperatorCall<BsRelatedContentCA> aggsLambda) {
    GlobalAggregationBuilder builder = regGlobalA(name);
    if (opLambda != null) {
        opLambda.callback(builder);
    }
    if (aggsLambda != null) {
        RelatedContentCA ca = new RelatedContentCA();
        aggsLambda.callback(ca);
        ca.getAggregationBuilderList().forEach(builder::subAggregation);
    }
}
Also used : RelatedContentCA(org.codelibs.fess.es.config.cbean.ca.RelatedContentCA) GlobalAggregationBuilder(org.opensearch.search.aggregations.bucket.global.GlobalAggregationBuilder)

Example 5 with RelatedContentCA

use of org.codelibs.fess.es.config.cbean.ca.RelatedContentCA in project fess by codelibs.

the class BsRelatedContentCA method setCreatedTime_Histogram.

public void setCreatedTime_Histogram(String name, ConditionOptionCall<HistogramAggregationBuilder> opLambda, OperatorCall<BsRelatedContentCA> aggsLambda) {
    HistogramAggregationBuilder builder = regHistogramA(name, "createdTime");
    if (opLambda != null) {
        opLambda.callback(builder);
    }
    if (aggsLambda != null) {
        RelatedContentCA ca = new RelatedContentCA();
        aggsLambda.callback(ca);
        ca.getAggregationBuilderList().forEach(builder::subAggregation);
    }
}
Also used : HistogramAggregationBuilder(org.opensearch.search.aggregations.bucket.histogram.HistogramAggregationBuilder) RelatedContentCA(org.codelibs.fess.es.config.cbean.ca.RelatedContentCA)

Aggregations

RelatedContentCA (org.codelibs.fess.es.config.cbean.ca.RelatedContentCA)32 SignificantTermsAggregationBuilder (org.opensearch.search.aggregations.bucket.terms.SignificantTermsAggregationBuilder)10 MissingAggregationBuilder (org.opensearch.search.aggregations.bucket.missing.MissingAggregationBuilder)8 IpRangeAggregationBuilder (org.opensearch.search.aggregations.bucket.range.IpRangeAggregationBuilder)8 TermsAggregationBuilder (org.opensearch.search.aggregations.bucket.terms.TermsAggregationBuilder)5 HistogramAggregationBuilder (org.opensearch.search.aggregations.bucket.histogram.HistogramAggregationBuilder)3 RangeAggregationBuilder (org.opensearch.search.aggregations.bucket.range.RangeAggregationBuilder)3 RelatedContentCQ (org.codelibs.fess.es.config.cbean.cq.RelatedContentCQ)1 BsRelatedContentCQ (org.codelibs.fess.es.config.cbean.cq.bs.BsRelatedContentCQ)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