Search in sources :

Example 46 with HistogramAggregationBuilder

use of org.elasticsearch.search.aggregations.bucket.histogram.HistogramAggregationBuilder in project fess by codelibs.

the class BsSearchLogCA method setQueryOffset_Histogram.

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

Example 47 with HistogramAggregationBuilder

use of org.elasticsearch.search.aggregations.bucket.histogram.HistogramAggregationBuilder in project fess by codelibs.

the class BsGroupCA method setGidNumber_Histogram.

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

Example 48 with HistogramAggregationBuilder

use of org.elasticsearch.search.aggregations.bucket.histogram.HistogramAggregationBuilder in project fess by codelibs.

the class EsAbstractConditionAggregation method regHistogramA.

protected HistogramAggregationBuilder regHistogramA(String name, String field) {
    HistogramAggregationBuilder builder = AggregationBuilders.histogram(name).field(field);
    regA(builder);
    return builder;
}
Also used : HistogramAggregationBuilder(org.elasticsearch.search.aggregations.bucket.histogram.HistogramAggregationBuilder) DateHistogramAggregationBuilder(org.elasticsearch.search.aggregations.bucket.histogram.DateHistogramAggregationBuilder)

Example 49 with HistogramAggregationBuilder

use of org.elasticsearch.search.aggregations.bucket.histogram.HistogramAggregationBuilder in project fess by codelibs.

the class BsUserCA method setGidNumber_Histogram.

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

Example 50 with HistogramAggregationBuilder

use of org.elasticsearch.search.aggregations.bucket.histogram.HistogramAggregationBuilder in project fess by codelibs.

the class EsAbstractConditionAggregation method regHistogramA.

protected HistogramAggregationBuilder regHistogramA(String name, String field) {
    HistogramAggregationBuilder builder = AggregationBuilders.histogram(name).field(field);
    regA(builder);
    return builder;
}
Also used : HistogramAggregationBuilder(org.elasticsearch.search.aggregations.bucket.histogram.HistogramAggregationBuilder) DateHistogramAggregationBuilder(org.elasticsearch.search.aggregations.bucket.histogram.DateHistogramAggregationBuilder)

Aggregations

HistogramAggregationBuilder (org.elasticsearch.search.aggregations.bucket.histogram.HistogramAggregationBuilder)90 FileConfigCA (org.codelibs.fess.es.config.cbean.ca.FileConfigCA)10 WebConfigCA (org.codelibs.fess.es.config.cbean.ca.WebConfigCA)10 DateHistogramAggregationBuilder (org.elasticsearch.search.aggregations.bucket.histogram.DateHistogramAggregationBuilder)10 ScheduledJobCA (org.codelibs.fess.es.config.cbean.ca.ScheduledJobCA)6 DataConfigCA (org.codelibs.fess.es.config.cbean.ca.DataConfigCA)5 SearchLogCA (org.codelibs.fess.es.log.cbean.ca.SearchLogCA)5 KeyMatchCA (org.codelibs.fess.es.config.cbean.ca.KeyMatchCA)4 AccessTokenCA (org.codelibs.fess.es.config.cbean.ca.AccessTokenCA)3 BoostDocumentRuleCA (org.codelibs.fess.es.config.cbean.ca.BoostDocumentRuleCA)3 DuplicateHostCA (org.codelibs.fess.es.config.cbean.ca.DuplicateHostCA)3 ElevateWordCA (org.codelibs.fess.es.config.cbean.ca.ElevateWordCA)3 FileAuthenticationCA (org.codelibs.fess.es.config.cbean.ca.FileAuthenticationCA)3 JobLogCA (org.codelibs.fess.es.config.cbean.ca.JobLogCA)3 LabelTypeCA (org.codelibs.fess.es.config.cbean.ca.LabelTypeCA)3 PathMappingCA (org.codelibs.fess.es.config.cbean.ca.PathMappingCA)3 RoleTypeCA (org.codelibs.fess.es.config.cbean.ca.RoleTypeCA)3 WebAuthenticationCA (org.codelibs.fess.es.config.cbean.ca.WebAuthenticationCA)3 BadWordCA (org.codelibs.fess.es.config.cbean.ca.BadWordCA)2 CrawlingInfoCA (org.codelibs.fess.es.config.cbean.ca.CrawlingInfoCA)2