Search in sources :

Example 16 with FileConfigCA

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

the class BsFileConfigCA method setDescription_Missing.

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

Example 17 with FileConfigCA

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

the class BsFileConfigCA method setDepth_Histogram.

public void setDepth_Histogram(String name, ConditionOptionCall<HistogramAggregationBuilder> opLambda, OperatorCall<BsFileConfigCA> aggsLambda) {
    HistogramAggregationBuilder builder = regHistogramA(name, "depth");
    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)

Example 18 with FileConfigCA

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

the class BsFileConfigCA method setIntervalTime_Missing.

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

Example 19 with FileConfigCA

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

the class BsFileConfigCA method sampler.

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

Example 20 with FileConfigCA

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

the class BsFileConfigCA method setExcludedPaths_Terms.

public void setExcludedPaths_Terms(String name, ConditionOptionCall<TermsAggregationBuilder> opLambda, OperatorCall<BsFileConfigCA> aggsLambda) {
    TermsAggregationBuilder builder = regTermsA(name, "excludedPaths");
    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)

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