Search in sources :

Example 11 with RelatedContentCA

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

the class BsRelatedContentCA method setCreatedBy_IpRange.

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

Example 12 with RelatedContentCA

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

the class BsRelatedContentCA method setContent_IpRange.

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

Example 13 with RelatedContentCA

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

the class BsRelatedContentCA method setUpdatedTime_Range.

public void setUpdatedTime_Range(String name, ConditionOptionCall<RangeAggregationBuilder> opLambda, OperatorCall<BsRelatedContentCA> aggsLambda) {
    RangeAggregationBuilder builder = regRangeA(name, "updatedTime");
    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) RangeAggregationBuilder(org.opensearch.search.aggregations.bucket.range.RangeAggregationBuilder) IpRangeAggregationBuilder(org.opensearch.search.aggregations.bucket.range.IpRangeAggregationBuilder)

Example 14 with RelatedContentCA

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

the class BsRelatedContentCA method setContent_SignificantTerms.

public void setContent_SignificantTerms(String name, ConditionOptionCall<SignificantTermsAggregationBuilder> opLambda, OperatorCall<BsRelatedContentCA> aggsLambda) {
    SignificantTermsAggregationBuilder builder = regSignificantTermsA(name, "content");
    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 15 with RelatedContentCA

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

the class BsRelatedContentCA method setSortOrder_Range.

public void setSortOrder_Range(String name, ConditionOptionCall<RangeAggregationBuilder> opLambda, OperatorCall<BsRelatedContentCA> aggsLambda) {
    RangeAggregationBuilder builder = regRangeA(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) RangeAggregationBuilder(org.opensearch.search.aggregations.bucket.range.RangeAggregationBuilder) IpRangeAggregationBuilder(org.opensearch.search.aggregations.bucket.range.IpRangeAggregationBuilder)

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