Search in sources :

Example 26 with ElevateWordCA

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

the class BsElevateWordCA method setTargetLabel_Missing.

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

Example 27 with ElevateWordCA

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

the class BsElevateWordCA method setUpdatedBy_IpRange.

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

Example 28 with ElevateWordCA

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

the class BsElevateWordCA method setReading_SignificantTerms.

public void setReading_SignificantTerms(String name, ConditionOptionCall<SignificantTermsAggregationBuilder> opLambda, OperatorCall<BsElevateWordCA> aggsLambda) {
    SignificantTermsAggregationBuilder builder = regSignificantTermsA(name, "reading");
    if (opLambda != null) {
        opLambda.callback(builder);
    }
    if (aggsLambda != null) {
        ElevateWordCA ca = new ElevateWordCA();
        aggsLambda.callback(ca);
        ca.getAggregationBuilderList().forEach(builder::subAggregation);
    }
}
Also used : ElevateWordCA(org.codelibs.fess.es.config.cbean.ca.ElevateWordCA) SignificantTermsAggregationBuilder(org.elasticsearch.search.aggregations.bucket.significant.SignificantTermsAggregationBuilder)

Example 29 with ElevateWordCA

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

the class BsElevateWordCA method setCreatedBy_IpRange.

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

Example 30 with ElevateWordCA

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

the class BsElevateWordCA method setCreatedBy_SignificantTerms.

public void setCreatedBy_SignificantTerms(String name, ConditionOptionCall<SignificantTermsAggregationBuilder> opLambda, OperatorCall<BsElevateWordCA> aggsLambda) {
    SignificantTermsAggregationBuilder builder = regSignificantTermsA(name, "createdBy");
    if (opLambda != null) {
        opLambda.callback(builder);
    }
    if (aggsLambda != null) {
        ElevateWordCA ca = new ElevateWordCA();
        aggsLambda.callback(ca);
        ca.getAggregationBuilderList().forEach(builder::subAggregation);
    }
}
Also used : ElevateWordCA(org.codelibs.fess.es.config.cbean.ca.ElevateWordCA) SignificantTermsAggregationBuilder(org.elasticsearch.search.aggregations.bucket.significant.SignificantTermsAggregationBuilder)

Aggregations

ElevateWordCA (org.codelibs.fess.es.config.cbean.ca.ElevateWordCA)40 SignificantTermsAggregationBuilder (org.elasticsearch.search.aggregations.bucket.significant.SignificantTermsAggregationBuilder)14 MissingAggregationBuilder (org.elasticsearch.search.aggregations.bucket.missing.MissingAggregationBuilder)10 IpRangeAggregationBuilder (org.elasticsearch.search.aggregations.bucket.range.ip.IpRangeAggregationBuilder)10 TermsAggregationBuilder (org.elasticsearch.search.aggregations.bucket.terms.TermsAggregationBuilder)7 HistogramAggregationBuilder (org.elasticsearch.search.aggregations.bucket.histogram.HistogramAggregationBuilder)3 RangeAggregationBuilder (org.elasticsearch.search.aggregations.bucket.range.RangeAggregationBuilder)3 ElevateWordCQ (org.codelibs.fess.es.config.cbean.cq.ElevateWordCQ)1 BsElevateWordCQ (org.codelibs.fess.es.config.cbean.cq.bs.BsElevateWordCQ)1 FilterAggregationBuilder (org.elasticsearch.search.aggregations.bucket.filter.FilterAggregationBuilder)1 GlobalAggregationBuilder (org.elasticsearch.search.aggregations.bucket.global.GlobalAggregationBuilder)1 SamplerAggregationBuilder (org.elasticsearch.search.aggregations.bucket.sampler.SamplerAggregationBuilder)1