mirror of
https://github.com/spring-projects/spring-data-elasticsearch.git
synced 2025-05-31 09:12:11 +00:00
parent
89944b66c4
commit
771d8fb5e7
@ -48,7 +48,10 @@ public interface ElasticsearchRepository<T, ID> extends PagingAndSortingReposito
|
||||
* This method is intended to be used when many single inserts must be made that cannot be aggregated to be inserted
|
||||
* with {@link #saveAll(Iterable)}. This might lead to a temporary inconsistent state until {@link #refresh()} is
|
||||
* called.
|
||||
*
|
||||
* @deprecated since 4.0, use a custom repository implementation instead
|
||||
*/
|
||||
@Deprecated
|
||||
<S extends T> S indexWithoutRefresh(S entity);
|
||||
|
||||
/**
|
||||
|
@ -182,6 +182,7 @@ public abstract class AbstractElasticsearchRepository<T, ID> implements Elastics
|
||||
}
|
||||
|
||||
@Override
|
||||
@Deprecated
|
||||
public <S extends T> S indexWithoutRefresh(S entity) {
|
||||
Assert.notNull(entity, "Cannot save 'null' entity.");
|
||||
operations.save(entity);
|
||||
|
Loading…
x
Reference in New Issue
Block a user