Skip to content

Commit 5b146ad

Browse files
committed
Enable concurrent_segment_search auto mode by default
Signed-off-by: Vikasht34 <viktari@amazon.com>
1 parent 3638c13 commit 5b146ad

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server/src/main/java/org/opensearch/search/SearchService.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ public class SearchService extends AbstractLifecycleComponent implements IndexEv
279279

280280
public static final Setting<String> CLUSTER_CONCURRENT_SEGMENT_SEARCH_MODE = Setting.simpleString(
281281
"search.concurrent_segment_search.mode",
282-
CONCURRENT_SEGMENT_SEARCH_MODE_NONE,
282+
CONCURRENT_SEGMENT_SEARCH_MODE_AUTO,
283283
value -> {
284284
switch (value) {
285285
case CONCURRENT_SEGMENT_SEARCH_MODE_ALL:
@@ -298,7 +298,7 @@ public class SearchService extends AbstractLifecycleComponent implements IndexEv
298298
// settings to configure maximum slice created per search request using OS custom slice computation mechanism. Default lucene
299299
// mechanism will not be used if this setting is set with value > 0
300300
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;
302302

303303
// value == 0 means lucene slice computation will be used
304304
public static final Setting<Integer> CONCURRENT_SEGMENT_SEARCH_TARGET_MAX_SLICE_COUNT_SETTING = Setting.intSetting(

0 commit comments

Comments
 (0)