File tree 1 file changed +2
-2
lines changed
server/src/main/java/org/opensearch/search 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -279,7 +279,7 @@ public class SearchService extends AbstractLifecycleComponent implements IndexEv
279
279
280
280
public static final Setting <String > CLUSTER_CONCURRENT_SEGMENT_SEARCH_MODE = Setting .simpleString (
281
281
"search.concurrent_segment_search.mode" ,
282
- CONCURRENT_SEGMENT_SEARCH_MODE_NONE ,
282
+ CONCURRENT_SEGMENT_SEARCH_MODE_AUTO ,
283
283
value -> {
284
284
switch (value ) {
285
285
case CONCURRENT_SEGMENT_SEARCH_MODE_ALL :
@@ -298,7 +298,7 @@ public class SearchService extends AbstractLifecycleComponent implements IndexEv
298
298
// settings to configure maximum slice created per search request using OS custom slice computation mechanism. Default lucene
299
299
// mechanism will not be used if this setting is set with value > 0
300
300
public static final String CONCURRENT_SEGMENT_SEARCH_TARGET_MAX_SLICE_COUNT_KEY = "search.concurrent.max_slice_count" ;
301
- public static final int CONCURRENT_SEGMENT_SEARCH_TARGET_MAX_SLICE_COUNT_DEFAULT_VALUE = 0 ;
301
+ public static final int CONCURRENT_SEGMENT_SEARCH_TARGET_MAX_SLICE_COUNT_DEFAULT_VALUE = 2 ;
302
302
303
303
// value == 0 means lucene slice computation will be used
304
304
public static final Setting <Integer > CONCURRENT_SEGMENT_SEARCH_TARGET_MAX_SLICE_COUNT_SETTING = Setting .intSetting (
You can’t perform that action at this time.
0 commit comments