spring-projects / spring-data-elasticsearch

Provide support to increase developer productivity in Java when using Elasticsearch. Uses familiar Spring concepts such as a template classes for core API usage and lightweight repository style data access.
https://spring.io/projects/spring-data-elasticsearch/
Apache License 2.0
2.9k stars 1.33k forks source link

ElasticsearchPersistentEntity isReadable method removed from the interface causing compilation error in 5.2.0 #2887

Closed mukeshj13 closed 5 months ago

mukeshj13 commented 5 months ago

I am not seeing isReadable() method in the ElasticsearchPersistentEntity interface, although this is still being used in EntityOperations in the same module. I have seen this compilation error in 5.2.0 and it is present in 5.2.1 as well.

sothawo commented 5 months ago

There is no and never was a method 'isReadable()inElasticsearchPersistentEntity`.

Such a method exists for a ElasticsearchPersistentProperty. Up until version 5.2 this was defined in the interface ElasticsearchPersistentProperty. From version 5.2 on, this is defined in the PersistentProperty from spring-data-commons 3.2 which ElasticsearchPersistentProperty extends.

If you run into an error about this method not being available anymore means that you changed the version of spring-data-elasticsearch to 5.2 but did not update the spring-data-commons dependency.