Search in sources :

Example 31 with HistogramAggregationBuilder

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

the class BsClickLogCA method setOrder_Histogram.

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

Example 32 with HistogramAggregationBuilder

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

the class BsFailureUrlCA method setErrorCount_Histogram.

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

Example 33 with HistogramAggregationBuilder

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

the class BsFailureUrlCA method setLastAccessTime_Histogram.

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

Example 34 with HistogramAggregationBuilder

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

the class BsElevateWordCA method setCreatedTime_Histogram.

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

Example 35 with HistogramAggregationBuilder

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

the class BsFileConfigCA method setIntervalTime_Histogram.

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

Aggregations

HistogramAggregationBuilder (org.opensearch.search.aggregations.bucket.histogram.HistogramAggregationBuilder)92 FileConfigCA (org.codelibs.fess.es.config.cbean.ca.FileConfigCA)10 WebConfigCA (org.codelibs.fess.es.config.cbean.ca.WebConfigCA)10 DateHistogramAggregationBuilder (org.opensearch.search.aggregations.bucket.histogram.DateHistogramAggregationBuilder)9 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 RelatedContentCA (org.codelibs.fess.es.config.cbean.ca.RelatedContentCA)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