File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
java/org/springframework/data/elasticsearch/client
resources/org/springframework/data/elasticsearch/config Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ public boolean isSingleton() {
63
63
64
64
@ Override
65
65
public void afterPropertiesSet () throws Exception {
66
- nodeClient = (NodeClient ) nodeBuilder ().local (this .local ).data (this .purgeDataOnShutdown ).node ().client ();
66
+ nodeClient = (NodeClient ) nodeBuilder ().local (this .local ).data (! this .purgeDataOnShutdown ).node ().client ();
67
67
}
68
68
69
69
public void setLocal (boolean local ) {
Original file line number Diff line number Diff line change 45
45
<xsd : complexContent >
46
46
<xsd : extension base =" beans:identifiedType" >
47
47
<xsd : attribute name =" local" type =" xsd:boolean" default =" false" />
48
- <xsd : attribute name =" purge-data-on-shutdown" type =" xsd:boolean" default =" false " />
48
+ <xsd : attribute name =" purge-data-on-shutdown" type =" xsd:boolean" default =" true " />
49
49
</xsd : extension >
50
50
</xsd : complexContent >
51
51
</xsd : complexType >
Original file line number Diff line number Diff line change 5
5
xsi : schemaLocation =" http://www.springframework.org/schema/data/elasticsearch http://www.springframework.org/schema/data/elasticsearch/spring-elasticsearch.xsd
6
6
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd" >
7
7
8
- <elasticsearch : node-client id =" client" local =" true" purge-data-on-shutdown =" false " />
8
+ <elasticsearch : node-client id =" client" local =" true" purge-data-on-shutdown =" true " />
9
9
10
10
</beans >
You can’t perform that action at this time.
0 commit comments