Search in sources :

Example 36 with ElevateWordCA

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

the class BsElevateWordCA method setPermissions_SignificantTerms.

public void setPermissions_SignificantTerms(String name, ConditionOptionCall<SignificantTermsAggregationBuilder> opLambda, OperatorCall<BsElevateWordCA> aggsLambda) {
    SignificantTermsAggregationBuilder builder = regSignificantTermsA(name, "permissions");
    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 37 with ElevateWordCA

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

the class BsElevateWordCA method setUpdatedTime_Histogram.

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

Example 38 with ElevateWordCA

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

the class BsElevateWordCA method setBoost_Missing.

public void setBoost_Missing(String name, ConditionOptionCall<MissingAggregationBuilder> opLambda, OperatorCall<BsElevateWordCA> aggsLambda) {
    MissingAggregationBuilder builder = regMissingA(name, "boost");
    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 39 with ElevateWordCA

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

the class BsElevateWordCA method setUpdatedBy_SignificantTerms.

public void setUpdatedBy_SignificantTerms(String name, ConditionOptionCall<SignificantTermsAggregationBuilder> opLambda, OperatorCall<BsElevateWordCA> aggsLambda) {
    SignificantTermsAggregationBuilder builder = regSignificantTermsA(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 : ElevateWordCA(org.codelibs.fess.es.config.cbean.ca.ElevateWordCA) SignificantTermsAggregationBuilder(org.elasticsearch.search.aggregations.bucket.significant.SignificantTermsAggregationBuilder)

Example 40 with ElevateWordCA

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

the class BsElevateWordCA method setBoost_Histogram.

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

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