Skip to content

Commit

Permalink
iter
Browse files Browse the repository at this point in the history
  • Loading branch information
javanna committed Oct 23, 2023
1 parent ebd15f3 commit 60dad26
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2075,8 +2075,9 @@ private NodeConfigurationSource getNodeConfigSource() {
}
boolean enableConcurrentSearch = enableConcurrentSearch();
if (enableConcurrentSearch) {
initialNodeSettings.put(SearchService.QUERY_PHASE_PARALLEL_COLLECTION_ENABLED.getKey(), true);
initialNodeSettings.put(SearchService.MINIMUM_DOCS_PER_SLICE.getKey(), 1);
} else {
initialNodeSettings.put(SearchService.QUERY_PHASE_PARALLEL_COLLECTION_ENABLED.getKey(), false);
}
return new NodeConfigurationSource() {
@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -254,8 +254,9 @@ private Node newNode() {

boolean enableConcurrentSearch = enableConcurrentSearch();
if (enableConcurrentSearch) {
settingBuilder.put(SearchService.QUERY_PHASE_PARALLEL_COLLECTION_ENABLED.getKey(), true)
.put(SearchService.MINIMUM_DOCS_PER_SLICE.getKey(), 1);
settingBuilder.put(SearchService.MINIMUM_DOCS_PER_SLICE.getKey(), 1);
} else {
settingBuilder.put(SearchService.QUERY_PHASE_PARALLEL_COLLECTION_ENABLED.getKey(), false);
}
Settings settings = settingBuilder.build();

Expand Down

0 comments on commit 60dad26

Please sign in to comment.