Search in sources :

Example 6 with ElevateWordToLabelCA

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

the class BsElevateWordToLabelCA method setLabelTypeId_Terms.

public void setLabelTypeId_Terms(String name, ConditionOptionCall<TermsAggregationBuilder> opLambda, OperatorCall<BsElevateWordToLabelCA> aggsLambda) {
    TermsAggregationBuilder builder = regTermsA(name, "labelTypeId");
    if (opLambda != null) {
        opLambda.callback(builder);
    }
    if (aggsLambda != null) {
        ElevateWordToLabelCA ca = new ElevateWordToLabelCA();
        aggsLambda.callback(ca);
        ca.getAggregationBuilderList().forEach(builder::subAggregation);
    }
}
Also used : TermsAggregationBuilder(org.elasticsearch.search.aggregations.bucket.terms.TermsAggregationBuilder) SignificantTermsAggregationBuilder(org.elasticsearch.search.aggregations.bucket.significant.SignificantTermsAggregationBuilder) ElevateWordToLabelCA(org.codelibs.fess.es.config.cbean.ca.ElevateWordToLabelCA)

Example 7 with ElevateWordToLabelCA

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

the class BsElevateWordToLabelCA method setElevateWordId_IpRange.

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

Example 8 with ElevateWordToLabelCA

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

the class BsElevateWordToLabelCA method global.

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

Example 9 with ElevateWordToLabelCA

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

the class BsElevateWordToLabelCA method setLabelTypeId_Missing.

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

Example 10 with ElevateWordToLabelCA

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

the class BsElevateWordToLabelCA method setElevateWordId_Missing.

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

Aggregations

ElevateWordToLabelCA (org.codelibs.fess.es.config.cbean.ca.ElevateWordToLabelCA)11 SignificantTermsAggregationBuilder (org.elasticsearch.search.aggregations.bucket.significant.SignificantTermsAggregationBuilder)4 MissingAggregationBuilder (org.elasticsearch.search.aggregations.bucket.missing.MissingAggregationBuilder)2 IpRangeAggregationBuilder (org.elasticsearch.search.aggregations.bucket.range.ip.IpRangeAggregationBuilder)2 TermsAggregationBuilder (org.elasticsearch.search.aggregations.bucket.terms.TermsAggregationBuilder)2 ElevateWordToLabelCQ (org.codelibs.fess.es.config.cbean.cq.ElevateWordToLabelCQ)1 BsElevateWordToLabelCQ (org.codelibs.fess.es.config.cbean.cq.bs.BsElevateWordToLabelCQ)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