Search in sources :

Example 21 with ElevateWordCA

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

the class BsElevateWordCA method setUpdatedBy_Missing.

public void setUpdatedBy_Missing(String name, ConditionOptionCall<MissingAggregationBuilder> opLambda, OperatorCall<BsElevateWordCA> aggsLambda) {
    MissingAggregationBuilder builder = regMissingA(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) MissingAggregationBuilder(org.elasticsearch.search.aggregations.bucket.missing.MissingAggregationBuilder)

Example 22 with ElevateWordCA

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

the class BsElevateWordCA method setTargetRole_SignificantTerms.

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

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

the class BsElevateWordCA method setSuggestWord_Missing.

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

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

the class BsElevateWordCA method setTargetRole_IpRange.

public void setTargetRole_IpRange(String name, ConditionOptionCall<IpRangeAggregationBuilder> opLambda, OperatorCall<BsElevateWordCA> aggsLambda) {
    IpRangeAggregationBuilder builder = regIpRangeA(name, "targetRole");
    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 25 with ElevateWordCA

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

the class BsElevateWordCA method filter.

// ===================================================================================
//                                                                     Aggregation Set
//                                                                           =========
public void filter(String name, EsAbstractConditionQuery.OperatorCall<BsElevateWordCQ> queryLambda, ConditionOptionCall<FilterAggregationBuilder> opLambda, OperatorCall<BsElevateWordCA> aggsLambda) {
    ElevateWordCQ cq = new ElevateWordCQ();
    if (queryLambda != null) {
        queryLambda.callback(cq);
    }
    FilterAggregationBuilder builder = regFilterA(name, cq.getQuery());
    if (opLambda != null) {
        opLambda.callback(builder);
    }
    if (aggsLambda != null) {
        ElevateWordCA ca = new ElevateWordCA();
        aggsLambda.callback(ca);
        ca.getAggregationBuilderList().forEach(builder::subAggregation);
    }
}
Also used : FilterAggregationBuilder(org.elasticsearch.search.aggregations.bucket.filter.FilterAggregationBuilder) ElevateWordCQ(org.codelibs.fess.es.config.cbean.cq.ElevateWordCQ) BsElevateWordCQ(org.codelibs.fess.es.config.cbean.cq.bs.BsElevateWordCQ) 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