entry 'jetty-server'
entry 'jetty-servlet'
}
- dependency('org.elasticsearch.client:elasticsearch-rest-high-level-client:7.9.3') {
+ dependency('org.elasticsearch.client:elasticsearch-rest-high-level-client:7.10.2') {
exclude 'commons-logging:commons-logging'
}
- dependency 'org.elasticsearch.plugin:transport-netty4-client:7.9.3'
+ dependency 'org.elasticsearch.plugin:transport-netty4-client:7.10.2'
dependency 'org.elasticsearch:mocksocket:1.0'
- dependency 'org.codelibs.elasticsearch.module:analysis-common:7.9.3'
+ dependency 'org.codelibs.elasticsearch.module:analysis-common:7.10.2'
dependency 'org.eclipse.jgit:org.eclipse.jgit:5.9.0.202009080501-r'
dependency 'org.tmatesoft.svnkit:svnkit:1.10.1'
dependency 'org.hamcrest:hamcrest-all:1.3'
import org.elasticsearch.search.aggregations.bucket.filter.FilterAggregationBuilder;
import org.elasticsearch.search.aggregations.bucket.filter.ParsedFilter;
import org.elasticsearch.search.aggregations.bucket.histogram.DateHistogramInterval;
-import org.elasticsearch.search.aggregations.bucket.histogram.ExtendedBounds;
+import org.elasticsearch.search.aggregations.bucket.histogram.LongBounds;
import org.elasticsearch.search.aggregations.bucket.terms.IncludeExclude;
import org.elasticsearch.search.aggregations.bucket.terms.ParsedStringTerms;
import org.elasticsearch.search.aggregations.bucket.terms.Terms;
.format(DateUtils.DATETIME_FORMAT)
.timeZone(Optional.ofNullable(query.timeZone()).orElse(system.getDefaultTimeZone().toZoneId()))
// ES dateHistogram bounds are inclusive while createdBefore parameter is exclusive
- .extendedBounds(new ExtendedBounds(startInclusive ? startTime : (startTime + 1), endTime - 1L));
+ .extendedBounds(new LongBounds(startInclusive ? startTime : (startTime + 1), endTime - 1L));
addEffortAggregationIfNeeded(query, dateHistogram);
t.subAggregation(dateHistogram);
});