mirror of
https://github.com/spring-projects/spring-data-elasticsearch.git
synced 2025-06-23 04:22:12 +00:00
DATAES-461 - Polishing.
This commit is contained in:
parent
5eb83464a1
commit
d3c624c28a
@ -299,11 +299,13 @@ public abstract class AbstractElasticsearchRepository<T, ID> implements Elastics
|
||||
idsQueryBuilder.addIds(stringIdRepresentation(id));
|
||||
}
|
||||
}
|
||||
if(idsQueryBuilder.ids().isEmpty()) {
|
||||
|
||||
if (idsQueryBuilder.ids().isEmpty()) {
|
||||
return;
|
||||
}
|
||||
DeleteQuery deleteQuery = new DeleteQuery();
|
||||
deleteQuery.setQuery(idsQueryBuilder);
|
||||
|
||||
operations.delete(deleteQuery, indexCoordinates);
|
||||
indexOperations.refresh(indexCoordinates);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user