Search in sources :

Example 16 with FileAuthenticationCA

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

the class BsFileAuthenticationCA method setPort_Histogram.

public void setPort_Histogram(String name, ConditionOptionCall<HistogramAggregationBuilder> opLambda, OperatorCall<BsFileAuthenticationCA> aggsLambda) {
    HistogramAggregationBuilder builder = regHistogramA(name, "port");
    if (opLambda != null) {
        opLambda.callback(builder);
    }
    if (aggsLambda != null) {
        FileAuthenticationCA ca = new FileAuthenticationCA();
        aggsLambda.callback(ca);
        ca.getAggregationBuilderList().forEach(builder::subAggregation);
    }
}
Also used : HistogramAggregationBuilder(org.elasticsearch.search.aggregations.bucket.histogram.HistogramAggregationBuilder) FileAuthenticationCA(org.codelibs.fess.es.config.cbean.ca.FileAuthenticationCA)

Example 17 with FileAuthenticationCA

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

the class BsFileAuthenticationCA method setCreatedBy_Terms.

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

Example 18 with FileAuthenticationCA

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

the class BsFileAuthenticationCA method setPort_Range.

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

Example 19 with FileAuthenticationCA

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

the class BsFileAuthenticationCA method setUpdatedBy_IpRange.

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

Example 20 with FileAuthenticationCA

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

the class BsFileAuthenticationCA method setParameters_Terms.

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

Aggregations

FileAuthenticationCA (org.codelibs.fess.es.config.cbean.ca.FileAuthenticationCA)44 SignificantTermsAggregationBuilder (org.elasticsearch.search.aggregations.bucket.significant.SignificantTermsAggregationBuilder)16 MissingAggregationBuilder (org.elasticsearch.search.aggregations.bucket.missing.MissingAggregationBuilder)11 IpRangeAggregationBuilder (org.elasticsearch.search.aggregations.bucket.range.ip.IpRangeAggregationBuilder)11 TermsAggregationBuilder (org.elasticsearch.search.aggregations.bucket.terms.TermsAggregationBuilder)8 HistogramAggregationBuilder (org.elasticsearch.search.aggregations.bucket.histogram.HistogramAggregationBuilder)3 RangeAggregationBuilder (org.elasticsearch.search.aggregations.bucket.range.RangeAggregationBuilder)3 FileAuthenticationCQ (org.codelibs.fess.es.config.cbean.cq.FileAuthenticationCQ)1 BsFileAuthenticationCQ (org.codelibs.fess.es.config.cbean.cq.bs.BsFileAuthenticationCQ)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