mirror of
https://github.com/spring-projects/spring-data-elasticsearch.git
synced 2025-07-03 09:12:12 +00:00
Fix implementation of explicit refresh policy.
Original Pull Request #2908 Closes #2907 (cherry picked from commit 94a40a7a752b6cf797d3e75fffe128f77f1c8468)
This commit is contained in:
parent
ed18be6f1c
commit
c81958f62d
@ -453,9 +453,7 @@ public class SimpleElasticsearchRepository<T, ID> implements ElasticsearchReposi
|
|||||||
|
|
||||||
@Nullable
|
@Nullable
|
||||||
public <R> R executeAndRefresh(OperationsCallback<R> callback, @Nullable RefreshPolicy refreshPolicy) {
|
public <R> R executeAndRefresh(OperationsCallback<R> callback, @Nullable RefreshPolicy refreshPolicy) {
|
||||||
R result = callback.doWithOperations(operations.withRefreshPolicy(refreshPolicy));
|
return callback.doWithOperations(operations.withRefreshPolicy(refreshPolicy));
|
||||||
doRefresh();
|
|
||||||
return result;
|
|
||||||
}
|
}
|
||||||
// endregion
|
// endregion
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user