Search in sources :

Example 6 with UserInfoCA

use of org.codelibs.fess.es.log.cbean.ca.UserInfoCA in project fess by codelibs.

the class BsUserInfoCA method setUpdatedAt_DateRange.

public void setUpdatedAt_DateRange(String name, ConditionOptionCall<DateRangeAggregationBuilder> opLambda, OperatorCall<BsUserInfoCA> aggsLambda) {
    DateRangeAggregationBuilder builder = regDateRangeA(name, "updatedAt");
    if (opLambda != null) {
        opLambda.callback(builder);
    }
    if (aggsLambda != null) {
        UserInfoCA ca = new UserInfoCA();
        aggsLambda.callback(ca);
        ca.getAggregationBuilderList().forEach(builder::subAggregation);
    }
}
Also used : DateRangeAggregationBuilder(org.elasticsearch.search.aggregations.bucket.range.date.DateRangeAggregationBuilder) UserInfoCA(org.codelibs.fess.es.log.cbean.ca.UserInfoCA)

Example 7 with UserInfoCA

use of org.codelibs.fess.es.log.cbean.ca.UserInfoCA in project fess by codelibs.

the class BsUserInfoCA method setUpdatedAt_DateHistogram.

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

Example 8 with UserInfoCA

use of org.codelibs.fess.es.log.cbean.ca.UserInfoCA in project fess by codelibs.

the class BsUserInfoCA method setCreatedAt_DateRange.

public void setCreatedAt_DateRange(String name, ConditionOptionCall<DateRangeAggregationBuilder> opLambda, OperatorCall<BsUserInfoCA> aggsLambda) {
    DateRangeAggregationBuilder builder = regDateRangeA(name, "createdAt");
    if (opLambda != null) {
        opLambda.callback(builder);
    }
    if (aggsLambda != null) {
        UserInfoCA ca = new UserInfoCA();
        aggsLambda.callback(ca);
        ca.getAggregationBuilderList().forEach(builder::subAggregation);
    }
}
Also used : DateRangeAggregationBuilder(org.elasticsearch.search.aggregations.bucket.range.date.DateRangeAggregationBuilder) UserInfoCA(org.codelibs.fess.es.log.cbean.ca.UserInfoCA)

Example 9 with UserInfoCA

use of org.codelibs.fess.es.log.cbean.ca.UserInfoCA in project fess by codelibs.

the class BsUserInfoCA method global.

public void global(String name, ConditionOptionCall<GlobalAggregationBuilder> opLambda, OperatorCall<BsUserInfoCA> aggsLambda) {
    GlobalAggregationBuilder builder = regGlobalA(name);
    if (opLambda != null) {
        opLambda.callback(builder);
    }
    if (aggsLambda != null) {
        UserInfoCA ca = new UserInfoCA();
        aggsLambda.callback(ca);
        ca.getAggregationBuilderList().forEach(builder::subAggregation);
    }
}
Also used : UserInfoCA(org.codelibs.fess.es.log.cbean.ca.UserInfoCA) GlobalAggregationBuilder(org.elasticsearch.search.aggregations.bucket.global.GlobalAggregationBuilder)

Aggregations

UserInfoCA (org.codelibs.fess.es.log.cbean.ca.UserInfoCA)9 DateHistogramAggregationBuilder (org.elasticsearch.search.aggregations.bucket.histogram.DateHistogramAggregationBuilder)2 MissingAggregationBuilder (org.elasticsearch.search.aggregations.bucket.missing.MissingAggregationBuilder)2 DateRangeAggregationBuilder (org.elasticsearch.search.aggregations.bucket.range.date.DateRangeAggregationBuilder)2 UserInfoCQ (org.codelibs.fess.es.log.cbean.cq.UserInfoCQ)1 BsUserInfoCQ (org.codelibs.fess.es.log.cbean.cq.bs.BsUserInfoCQ)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