Search in sources :

Example 6 with WebConfigToRoleCA

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

the class BsWebConfigToRoleCA method setRoleTypeId_Missing.

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

Example 7 with WebConfigToRoleCA

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

the class BsWebConfigToRoleCA method setWebConfigId_SignificantTerms.

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

Example 8 with WebConfigToRoleCA

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

the class BsWebConfigToRoleCA method setWebConfigId_Terms.

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

Example 9 with WebConfigToRoleCA

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

the class BsWebConfigToRoleCA method filter.

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

Example 10 with WebConfigToRoleCA

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

the class BsWebConfigToRoleCA method setRoleTypeId_Terms.

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

Aggregations

WebConfigToRoleCA (org.codelibs.fess.es.config.cbean.ca.WebConfigToRoleCA)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 WebConfigToRoleCQ (org.codelibs.fess.es.config.cbean.cq.WebConfigToRoleCQ)1 BsWebConfigToRoleCQ (org.codelibs.fess.es.config.cbean.cq.bs.BsWebConfigToRoleCQ)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