Search in sources :

Example 1 with KeyMatchCA

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

the class BsKeyMatchCA method setCreatedTime_Histogram.

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

Example 2 with KeyMatchCA

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

the class BsKeyMatchCA method setCreatedBy_SignificantTerms.

public void setCreatedBy_SignificantTerms(String name, ConditionOptionCall<SignificantTermsAggregationBuilder> opLambda, OperatorCall<BsKeyMatchCA> aggsLambda) {
    SignificantTermsAggregationBuilder builder = regSignificantTermsA(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 : SignificantTermsAggregationBuilder(org.opensearch.search.aggregations.bucket.terms.SignificantTermsAggregationBuilder) KeyMatchCA(org.codelibs.fess.es.config.cbean.ca.KeyMatchCA)

Example 3 with KeyMatchCA

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

the class BsKeyMatchCA method setBoost_Range.

public void setBoost_Range(String name, ConditionOptionCall<RangeAggregationBuilder> opLambda, OperatorCall<BsKeyMatchCA> aggsLambda) {
    RangeAggregationBuilder builder = regRangeA(name, "boost");
    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) RangeAggregationBuilder(org.opensearch.search.aggregations.bucket.range.RangeAggregationBuilder) IpRangeAggregationBuilder(org.opensearch.search.aggregations.bucket.range.IpRangeAggregationBuilder)

Example 4 with KeyMatchCA

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

the class BsKeyMatchCA method setVirtualHost_Terms.

public void setVirtualHost_Terms(String name, ConditionOptionCall<TermsAggregationBuilder> opLambda, OperatorCall<BsKeyMatchCA> aggsLambda) {
    TermsAggregationBuilder builder = regTermsA(name, "virtualHost");
    if (opLambda != null) {
        opLambda.callback(builder);
    }
    if (aggsLambda != null) {
        KeyMatchCA ca = new KeyMatchCA();
        aggsLambda.callback(ca);
        ca.getAggregationBuilderList().forEach(builder::subAggregation);
    }
}
Also used : SignificantTermsAggregationBuilder(org.opensearch.search.aggregations.bucket.terms.SignificantTermsAggregationBuilder) TermsAggregationBuilder(org.opensearch.search.aggregations.bucket.terms.TermsAggregationBuilder) KeyMatchCA(org.codelibs.fess.es.config.cbean.ca.KeyMatchCA)

Example 5 with KeyMatchCA

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

the class BsKeyMatchCA method setMaxSize_Histogram.

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

Aggregations

KeyMatchCA (org.codelibs.fess.es.config.cbean.ca.KeyMatchCA)35 SignificantTermsAggregationBuilder (org.opensearch.search.aggregations.bucket.terms.SignificantTermsAggregationBuilder)10 MissingAggregationBuilder (org.opensearch.search.aggregations.bucket.missing.MissingAggregationBuilder)9 IpRangeAggregationBuilder (org.opensearch.search.aggregations.bucket.range.IpRangeAggregationBuilder)9 TermsAggregationBuilder (org.opensearch.search.aggregations.bucket.terms.TermsAggregationBuilder)5 HistogramAggregationBuilder (org.opensearch.search.aggregations.bucket.histogram.HistogramAggregationBuilder)4 RangeAggregationBuilder (org.opensearch.search.aggregations.bucket.range.RangeAggregationBuilder)4 KeyMatchCQ (org.codelibs.fess.es.config.cbean.cq.KeyMatchCQ)1 BsKeyMatchCQ (org.codelibs.fess.es.config.cbean.cq.bs.BsKeyMatchCQ)1 FilterAggregationBuilder (org.opensearch.search.aggregations.bucket.filter.FilterAggregationBuilder)1 GlobalAggregationBuilder (org.opensearch.search.aggregations.bucket.global.GlobalAggregationBuilder)1 SamplerAggregationBuilder (org.opensearch.search.aggregations.bucket.sampler.SamplerAggregationBuilder)1