Search in sources :

Example 6 with LabelToRoleCA

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

the class BsLabelToRoleCA method setLabelTypeId_IpRange.

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

Example 7 with LabelToRoleCA

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

the class BsLabelToRoleCA method filter.

// ===================================================================================
//                                                                     Aggregation Set
//                                                                           =========
public void filter(String name, EsAbstractConditionQuery.OperatorCall<BsLabelToRoleCQ> queryLambda, ConditionOptionCall<FilterAggregationBuilder> opLambda, OperatorCall<BsLabelToRoleCA> aggsLambda) {
    LabelToRoleCQ cq = new LabelToRoleCQ();
    if (queryLambda != null) {
        queryLambda.callback(cq);
    }
    FilterAggregationBuilder builder = regFilterA(name, cq.getQuery());
    if (opLambda != null) {
        opLambda.callback(builder);
    }
    if (aggsLambda != null) {
        LabelToRoleCA ca = new LabelToRoleCA();
        aggsLambda.callback(ca);
        ca.getAggregationBuilderList().forEach(builder::subAggregation);
    }
}
Also used : FilterAggregationBuilder(org.elasticsearch.search.aggregations.bucket.filter.FilterAggregationBuilder) BsLabelToRoleCQ(org.codelibs.fess.es.config.cbean.cq.bs.BsLabelToRoleCQ) LabelToRoleCQ(org.codelibs.fess.es.config.cbean.cq.LabelToRoleCQ) LabelToRoleCA(org.codelibs.fess.es.config.cbean.ca.LabelToRoleCA)

Example 8 with LabelToRoleCA

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

the class BsLabelToRoleCA method setRoleTypeId_Terms.

public void setRoleTypeId_Terms(String name, ConditionOptionCall<TermsAggregationBuilder> opLambda, OperatorCall<BsLabelToRoleCA> aggsLambda) {
    TermsAggregationBuilder builder = regTermsA(name, "roleTypeId");
    if (opLambda != null) {
        opLambda.callback(builder);
    }
    if (aggsLambda != null) {
        LabelToRoleCA ca = new LabelToRoleCA();
        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) LabelToRoleCA(org.codelibs.fess.es.config.cbean.ca.LabelToRoleCA)

Example 9 with LabelToRoleCA

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

the class BsLabelToRoleCA method setLabelTypeId_Terms.

public void setLabelTypeId_Terms(String name, ConditionOptionCall<TermsAggregationBuilder> opLambda, OperatorCall<BsLabelToRoleCA> aggsLambda) {
    TermsAggregationBuilder builder = regTermsA(name, "labelTypeId");
    if (opLambda != null) {
        opLambda.callback(builder);
    }
    if (aggsLambda != null) {
        LabelToRoleCA ca = new LabelToRoleCA();
        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) LabelToRoleCA(org.codelibs.fess.es.config.cbean.ca.LabelToRoleCA)

Example 10 with LabelToRoleCA

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

the class BsLabelToRoleCA method setRoleTypeId_IpRange.

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

Aggregations

LabelToRoleCA (org.codelibs.fess.es.config.cbean.ca.LabelToRoleCA)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 LabelToRoleCQ (org.codelibs.fess.es.config.cbean.cq.LabelToRoleCQ)1 BsLabelToRoleCQ (org.codelibs.fess.es.config.cbean.cq.bs.BsLabelToRoleCQ)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