Search in sources :

Example 26 with KeyMatchCA

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

the class BsKeyMatchCA method setUpdatedTime_Missing.

public void setUpdatedTime_Missing(String name, ConditionOptionCall<MissingAggregationBuilder> opLambda, OperatorCall<BsKeyMatchCA> aggsLambda) {
    MissingAggregationBuilder builder = regMissingA(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 : MissingAggregationBuilder(org.elasticsearch.search.aggregations.bucket.missing.MissingAggregationBuilder) KeyMatchCA(org.codelibs.fess.es.config.cbean.ca.KeyMatchCA)

Example 27 with KeyMatchCA

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

the class BsKeyMatchCA method setCreatedBy_Missing.

public void setCreatedBy_Missing(String name, ConditionOptionCall<MissingAggregationBuilder> opLambda, OperatorCall<BsKeyMatchCA> aggsLambda) {
    MissingAggregationBuilder builder = regMissingA(name, "createdBy");
    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 28 with KeyMatchCA

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

the class BsKeyMatchCA method setUpdatedTime_Histogram.

public void setUpdatedTime_Histogram(String name, ConditionOptionCall<HistogramAggregationBuilder> opLambda, OperatorCall<BsKeyMatchCA> aggsLambda) {
    HistogramAggregationBuilder builder = regHistogramA(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 : HistogramAggregationBuilder(org.elasticsearch.search.aggregations.bucket.histogram.HistogramAggregationBuilder) KeyMatchCA(org.codelibs.fess.es.config.cbean.ca.KeyMatchCA)

Example 29 with KeyMatchCA

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

the class BsKeyMatchCA method setUpdatedBy_Terms.

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

Example 30 with KeyMatchCA

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

the class BsKeyMatchCA method setTerm_Terms.

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

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