Skip to content

Commit a8bddeb

Browse files
committed
Remove redundant setting of refresh policy
Closes gh-30375
1 parent 5473cd3 commit a8bddeb

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/data/elasticsearch/ElasticsearchDataConfiguration.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2021 the original author or authors.
2+
* Copyright 2012-2022 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -34,7 +34,6 @@
3434
import org.springframework.data.elasticsearch.core.ElasticsearchRestTemplate;
3535
import org.springframework.data.elasticsearch.core.ReactiveElasticsearchOperations;
3636
import org.springframework.data.elasticsearch.core.ReactiveElasticsearchTemplate;
37-
import org.springframework.data.elasticsearch.core.RefreshPolicy;
3837
import org.springframework.data.elasticsearch.core.convert.ElasticsearchConverter;
3938
import org.springframework.data.elasticsearch.core.convert.ElasticsearchCustomConversions;
4039
import org.springframework.data.elasticsearch.core.convert.MappingElasticsearchConverter;
@@ -107,7 +106,6 @@ ReactiveElasticsearchTemplate reactiveElasticsearchTemplate(ReactiveElasticsearc
107106
ElasticsearchConverter converter) {
108107
ReactiveElasticsearchTemplate template = new ReactiveElasticsearchTemplate(client, converter);
109108
template.setIndicesOptions(IndicesOptions.strictExpandOpenAndForbidClosed());
110-
template.setRefreshPolicy(RefreshPolicy.IMMEDIATE);
111109
return template;
112110
}
113111

0 commit comments

Comments
 (0)