Search in sources :

Example 26 with RangeAggregationBuilder

use of org.opensearch.search.aggregations.bucket.range.RangeAggregationBuilder in project fess by codelibs.

the class BsSearchLogCA method setQueryTime_Range.

public void setQueryTime_Range(String name, ConditionOptionCall<RangeAggregationBuilder> opLambda, OperatorCall<BsSearchLogCA> aggsLambda) {
    RangeAggregationBuilder builder = regRangeA(name, "queryTime");
    if (opLambda != null) {
        opLambda.callback(builder);
    }
    if (aggsLambda != null) {
        SearchLogCA ca = new SearchLogCA();
        aggsLambda.callback(ca);
        ca.getAggregationBuilderList().forEach(builder::subAggregation);
    }
}
Also used : SearchLogCA(org.codelibs.fess.es.log.cbean.ca.SearchLogCA) RangeAggregationBuilder(org.opensearch.search.aggregations.bucket.range.RangeAggregationBuilder) IpRangeAggregationBuilder(org.opensearch.search.aggregations.bucket.range.IpRangeAggregationBuilder) DateRangeAggregationBuilder(org.opensearch.search.aggregations.bucket.range.DateRangeAggregationBuilder)

Example 27 with RangeAggregationBuilder

use of org.opensearch.search.aggregations.bucket.range.RangeAggregationBuilder in project fess by codelibs.

the class BsSearchLogCA method setHitCount_Range.

public void setHitCount_Range(String name, ConditionOptionCall<RangeAggregationBuilder> opLambda, OperatorCall<BsSearchLogCA> aggsLambda) {
    RangeAggregationBuilder builder = regRangeA(name, "hitCount");
    if (opLambda != null) {
        opLambda.callback(builder);
    }
    if (aggsLambda != null) {
        SearchLogCA ca = new SearchLogCA();
        aggsLambda.callback(ca);
        ca.getAggregationBuilderList().forEach(builder::subAggregation);
    }
}
Also used : SearchLogCA(org.codelibs.fess.es.log.cbean.ca.SearchLogCA) RangeAggregationBuilder(org.opensearch.search.aggregations.bucket.range.RangeAggregationBuilder) IpRangeAggregationBuilder(org.opensearch.search.aggregations.bucket.range.IpRangeAggregationBuilder) DateRangeAggregationBuilder(org.opensearch.search.aggregations.bucket.range.DateRangeAggregationBuilder)

Example 28 with RangeAggregationBuilder

use of org.opensearch.search.aggregations.bucket.range.RangeAggregationBuilder in project fess by codelibs.

the class BsSearchLogCA method setResponseTime_Range.

public void setResponseTime_Range(String name, ConditionOptionCall<RangeAggregationBuilder> opLambda, OperatorCall<BsSearchLogCA> aggsLambda) {
    RangeAggregationBuilder builder = regRangeA(name, "responseTime");
    if (opLambda != null) {
        opLambda.callback(builder);
    }
    if (aggsLambda != null) {
        SearchLogCA ca = new SearchLogCA();
        aggsLambda.callback(ca);
        ca.getAggregationBuilderList().forEach(builder::subAggregation);
    }
}
Also used : SearchLogCA(org.codelibs.fess.es.log.cbean.ca.SearchLogCA) RangeAggregationBuilder(org.opensearch.search.aggregations.bucket.range.RangeAggregationBuilder) IpRangeAggregationBuilder(org.opensearch.search.aggregations.bucket.range.IpRangeAggregationBuilder) DateRangeAggregationBuilder(org.opensearch.search.aggregations.bucket.range.DateRangeAggregationBuilder)

Example 29 with RangeAggregationBuilder

use of org.opensearch.search.aggregations.bucket.range.RangeAggregationBuilder in project fess by codelibs.

the class BsClickLogCA method setOrder_Range.

public void setOrder_Range(String name, ConditionOptionCall<RangeAggregationBuilder> opLambda, OperatorCall<BsClickLogCA> aggsLambda) {
    RangeAggregationBuilder builder = regRangeA(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 : RangeAggregationBuilder(org.opensearch.search.aggregations.bucket.range.RangeAggregationBuilder) IpRangeAggregationBuilder(org.opensearch.search.aggregations.bucket.range.IpRangeAggregationBuilder) DateRangeAggregationBuilder(org.opensearch.search.aggregations.bucket.range.DateRangeAggregationBuilder) ClickLogCA(org.codelibs.fess.es.log.cbean.ca.ClickLogCA)

Example 30 with RangeAggregationBuilder

use of org.opensearch.search.aggregations.bucket.range.RangeAggregationBuilder in project fess by codelibs.

the class BsFailureUrlCA method setErrorCount_Range.

public void setErrorCount_Range(String name, ConditionOptionCall<RangeAggregationBuilder> opLambda, OperatorCall<BsFailureUrlCA> aggsLambda) {
    RangeAggregationBuilder builder = regRangeA(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 : FailureUrlCA(org.codelibs.fess.es.config.cbean.ca.FailureUrlCA) RangeAggregationBuilder(org.opensearch.search.aggregations.bucket.range.RangeAggregationBuilder) IpRangeAggregationBuilder(org.opensearch.search.aggregations.bucket.range.IpRangeAggregationBuilder)

Aggregations

IpRangeAggregationBuilder (org.opensearch.search.aggregations.bucket.range.IpRangeAggregationBuilder)92 RangeAggregationBuilder (org.opensearch.search.aggregations.bucket.range.RangeAggregationBuilder)92 FileConfigCA (org.codelibs.fess.es.config.cbean.ca.FileConfigCA)10 WebConfigCA (org.codelibs.fess.es.config.cbean.ca.WebConfigCA)10 DateRangeAggregationBuilder (org.opensearch.search.aggregations.bucket.range.DateRangeAggregationBuilder)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