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.92k stars 1.33k forks source link

Refresh policy set at method level is ignored because of a call to doRefresh which does not take into account the method level policy #2907

Closed gurghet closed 6 months ago

gurghet commented 6 months ago

https://github.com/spring-projects/spring-data-elasticsearch/blob/dc5bf5a606232be18d027c4ace19d0e031675938/src/main/java/org/springframework/data/elasticsearch/repository/support/SimpleElasticsearchRepository.java#L461

I think the doRefresh() should be removed.