Search in sources :

Example 36 with FileConfigCA

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

the class BsFileConfigCA method setExcludedDocPaths_Terms.

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

Example 37 with FileConfigCA

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

the class BsFileConfigCA method setPaths_SignificantTerms.

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

Example 38 with FileConfigCA

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

the class BsFileConfigCA method filter.

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

Example 39 with FileConfigCA

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

the class BsFileConfigCA method setBoost_Range.

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

Example 40 with FileConfigCA

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

the class BsFileConfigCA method setUpdatedTime_Histogram.

public void setUpdatedTime_Histogram(String name, ConditionOptionCall<HistogramAggregationBuilder> opLambda, OperatorCall<BsFileConfigCA> aggsLambda) {
    HistogramAggregationBuilder builder = regHistogramA(name, "updatedTime");
    if (opLambda != null) {
        opLambda.callback(builder);
    }
    if (aggsLambda != null) {
        FileConfigCA ca = new FileConfigCA();
        aggsLambda.callback(ca);
        ca.getAggregationBuilderList().forEach(builder::subAggregation);
    }
}
Also used : HistogramAggregationBuilder(org.elasticsearch.search.aggregations.bucket.histogram.HistogramAggregationBuilder) FileConfigCA(org.codelibs.fess.es.config.cbean.ca.FileConfigCA)

Aggregations

FileConfigCA (org.codelibs.fess.es.config.cbean.ca.FileConfigCA)74 MissingAggregationBuilder (org.elasticsearch.search.aggregations.bucket.missing.MissingAggregationBuilder)21 IpRangeAggregationBuilder (org.elasticsearch.search.aggregations.bucket.range.ip.IpRangeAggregationBuilder)20 SignificantTermsAggregationBuilder (org.elasticsearch.search.aggregations.bucket.significant.SignificantTermsAggregationBuilder)20 HistogramAggregationBuilder (org.elasticsearch.search.aggregations.bucket.histogram.HistogramAggregationBuilder)10 RangeAggregationBuilder (org.elasticsearch.search.aggregations.bucket.range.RangeAggregationBuilder)10 TermsAggregationBuilder (org.elasticsearch.search.aggregations.bucket.terms.TermsAggregationBuilder)10 FileConfigCQ (org.codelibs.fess.es.config.cbean.cq.FileConfigCQ)1 BsFileConfigCQ (org.codelibs.fess.es.config.cbean.cq.bs.BsFileConfigCQ)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