File tree 1 file changed +6
-6
lines changed
modules/elasticsearch/src/main/java/org/elasticsearch/action/admin/indices/optimize
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -49,9 +49,9 @@ public class OptimizeRequest extends BroadcastOperationRequest {
49
49
50
50
private boolean onlyExpungeDeletes = false ;
51
51
52
- private boolean flush = false ;
52
+ private boolean flush = true ;
53
53
54
- private boolean refresh = false ;
54
+ private boolean refresh = true ;
55
55
56
56
/**
57
57
* Constructs an optimization request over one or more indices.
@@ -128,29 +128,29 @@ public OptimizeRequest onlyExpungeDeletes(boolean onlyExpungeDeletes) {
128
128
}
129
129
130
130
/**
131
- * Should flush be performed after the optimization. Defaults to <tt>false </tt>.
131
+ * Should flush be performed after the optimization. Defaults to <tt>true </tt>.
132
132
*/
133
133
public boolean flush () {
134
134
return flush ;
135
135
}
136
136
137
137
/**
138
- * Should flush be performed after the optimization. Defaults to <tt>false </tt>.
138
+ * Should flush be performed after the optimization. Defaults to <tt>true </tt>.
139
139
*/
140
140
public OptimizeRequest flush (boolean flush ) {
141
141
this .flush = flush ;
142
142
return this ;
143
143
}
144
144
145
145
/**
146
- * Should refresh be performed after the optimization. Defaults to <tt>false </tt>.
146
+ * Should refresh be performed after the optimization. Defaults to <tt>true </tt>.
147
147
*/
148
148
public boolean refresh () {
149
149
return refresh ;
150
150
}
151
151
152
152
/**
153
- * Should refresh be performed after the optimization. Defaults to <tt>false </tt>.
153
+ * Should refresh be performed after the optimization. Defaults to <tt>true </tt>.
154
154
*/
155
155
public OptimizeRequest refresh (boolean refresh ) {
156
156
this .refresh = refresh ;
You can’t perform that action at this time.
0 commit comments