Reputation: 13
ElasticsearchRestTemplate uses import org.elasticsearch.common.unit.TimeValue;. However in latest elasticsearch version 7.14 this class does not exist. Using ElasticsearchRestTemplate.searchScrollStart method results in a NoClassDefFound Exception.
Which version of spring-data-elasticsearch will support the version 7.14?
Upvotes: 1
Views: 1823
Reputation: 21
import org.elasticsearch.common.unit.TimeValue;
should be replaced by:
import org.elasticsearch.core.TimeValue;
Upvotes: 2
Reputation: 19421
The latest milestone version 4.3.0-M2 uses 7.13.3 (https://docs.spring.io/spring-data/elasticsearch/docs/4.3.0-M2/reference/html/#preface.versions).
I can't tell yet if we upgrade to 7.14 before M3 - and therefore before 4.3.0 GA
Edit 18.09.2021:
Client libraries 7.14.1 are included now from 4.3.0.M3 on that has been released last Friday.
Upvotes: 1