Search in sources :

Example 6 with FileConfigToLabelCA

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

the class BsFileConfigToLabelCA method setLabelTypeId_IpRange.

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

Example 7 with FileConfigToLabelCA

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

the class BsFileConfigToLabelCA method setFileConfigId_SignificantTerms.

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

Example 8 with FileConfigToLabelCA

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

the class BsFileConfigToLabelCA method filter.

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

Example 9 with FileConfigToLabelCA

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

the class BsFileConfigToLabelCA method global.

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

Example 10 with FileConfigToLabelCA

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

the class BsFileConfigToLabelCA method setFileConfigId_IpRange.

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

Aggregations

FileConfigToLabelCA (org.codelibs.fess.es.config.cbean.ca.FileConfigToLabelCA)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 FileConfigToLabelCQ (org.codelibs.fess.es.config.cbean.cq.FileConfigToLabelCQ)1 BsFileConfigToLabelCQ (org.codelibs.fess.es.config.cbean.cq.bs.BsFileConfigToLabelCQ)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