Search in sources :

Example 56 with WebConfigCA

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

the class BsWebConfigCA method setExcludedUrls_IpRange.

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

Example 57 with WebConfigCA

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

the class BsWebConfigCA method setUrls_SignificantTerms.

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

Example 58 with WebConfigCA

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

the class BsWebConfigCA method setName_Terms.

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

Example 59 with WebConfigCA

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

the class BsWebConfigCA method setDepth_Missing.

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

Example 60 with WebConfigCA

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

the class BsWebConfigCA method setPermissions_Missing.

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

Aggregations

WebConfigCA (org.codelibs.fess.es.config.cbean.ca.WebConfigCA)78 MissingAggregationBuilder (org.elasticsearch.search.aggregations.bucket.missing.MissingAggregationBuilder)22 SignificantTermsAggregationBuilder (org.elasticsearch.search.aggregations.bucket.significant.SignificantTermsAggregationBuilder)22 IpRangeAggregationBuilder (org.elasticsearch.search.aggregations.bucket.range.ip.IpRangeAggregationBuilder)21 TermsAggregationBuilder (org.elasticsearch.search.aggregations.bucket.terms.TermsAggregationBuilder)11 HistogramAggregationBuilder (org.elasticsearch.search.aggregations.bucket.histogram.HistogramAggregationBuilder)10 RangeAggregationBuilder (org.elasticsearch.search.aggregations.bucket.range.RangeAggregationBuilder)10 WebConfigCQ (org.codelibs.fess.es.config.cbean.cq.WebConfigCQ)1 BsWebConfigCQ (org.codelibs.fess.es.config.cbean.cq.bs.BsWebConfigCQ)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