Search in sources :

Example 16 with KeyMatchCA

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

the class BsKeyMatchCA method sampler.

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

Example 17 with KeyMatchCA

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

the class BsKeyMatchCA method setCreatedTime_Missing.

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

Example 18 with KeyMatchCA

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

the class BsKeyMatchCA method setUpdatedTime_Range.

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

Example 19 with KeyMatchCA

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

the class BsKeyMatchCA method setMaxSize_Range.

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

Example 20 with KeyMatchCA

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

the class BsKeyMatchCA method setCreatedTime_Range.

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

Aggregations

KeyMatchCA (org.codelibs.fess.es.config.cbean.ca.KeyMatchCA)31 MissingAggregationBuilder (org.elasticsearch.search.aggregations.bucket.missing.MissingAggregationBuilder)8 IpRangeAggregationBuilder (org.elasticsearch.search.aggregations.bucket.range.ip.IpRangeAggregationBuilder)8 SignificantTermsAggregationBuilder (org.elasticsearch.search.aggregations.bucket.significant.SignificantTermsAggregationBuilder)8 HistogramAggregationBuilder (org.elasticsearch.search.aggregations.bucket.histogram.HistogramAggregationBuilder)4 RangeAggregationBuilder (org.elasticsearch.search.aggregations.bucket.range.RangeAggregationBuilder)4 TermsAggregationBuilder (org.elasticsearch.search.aggregations.bucket.terms.TermsAggregationBuilder)4 KeyMatchCQ (org.codelibs.fess.es.config.cbean.cq.KeyMatchCQ)1 BsKeyMatchCQ (org.codelibs.fess.es.config.cbean.cq.bs.BsKeyMatchCQ)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