We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
We use Routing on a Document.
When upgrading from 4 to 5 we now get exception when calling delete using ElasticsearchRepository:
org.springframework.data.elasticsearch.UncategorizedElasticsearchException: [es/delete] failed: [routing_missing_exception] routing is required for
As far as I can tell the routing support has been removed in
https://github.com/spring-projects/spring-data-elasticsearch/blame/main/src/main/java/org/springframework/data/elasticsearch/repository/support/SimpleElasticsearchRepository.java
Version 5.1.5
public void delete(T entity) { Assert.notNull(entity, "Cannot delete 'null' entity."); doDelete(extractIdFromBean(entity), getIndexCoordinates()); }
Version 4.4.6
public void delete(T entity) { Assert.notNull(entity, "Cannot delete 'null' entity."); doDelete(extractIdFromBean(entity), operations.getEntityRouting(entity), getIndexCoordinates()); }
Is there another way delete is supposed to be used when routing is involved?
The text was updated successfully, but these errors were encountered:
That shouldn't have been removed (was already in 5.0). UP to now nobody noticed. Thanks for bringing this up. Will try to fix it later today.
Sorry, something went wrong.
Use routing info on delete operations.
9e5cc94
Closes spring-projects#2754
9abcacb
Original Pull Request #2755 Closes #2754
64cf956
Original Pull Request #2755 Closes #2754 (cherry picked from commit 9abcacb)
50d606b
Original Pull Request #2755 Closes #2754 (cherry picked from commit 9abcacb) (cherry picked from commit 64cf956)
Successfully merging a pull request may close this issue.
We use Routing on a Document.
When upgrading from 4 to 5 we now get exception when calling delete using ElasticsearchRepository:
org.springframework.data.elasticsearch.UncategorizedElasticsearchException: [es/delete] failed: [routing_missing_exception] routing is required for
As far as I can tell the routing support has been removed in
https://github.com/spring-projects/spring-data-elasticsearch/blame/main/src/main/java/org/springframework/data/elasticsearch/repository/support/SimpleElasticsearchRepository.java
Version 5.1.5
Version 4.4.6
Is there another way delete is supposed to be used when routing is involved?
The text was updated successfully, but these errors were encountered: