Skip to content

Commit f018ba7

Browse files
aeroastroChristoph Büscher
authored andcommitted
[Docs] Fix some typos in comments (#28098)
1 parent 056fb19 commit f018ba7

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

core/src/main/java/org/elasticsearch/action/search/TransportSearchAction.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ private void executeSearch(SearchTask task, SearchTimeProvider timeProvider, Sea
313313

314314
// optimize search type for cases where there is only one shard group to search on
315315
if (shardIterators.size() == 1) {
316-
// if we only have one group, then we always want Q_A_F, no need for DFS, and no need to do THEN since we hit one shard
316+
// if we only have one group, then we always want Q_T_F, no need for DFS, and no need to do THEN since we hit one shard
317317
searchRequest.searchType(QUERY_THEN_FETCH);
318318
}
319319
if (searchRequest.isSuggestOnly()) {
@@ -338,8 +338,8 @@ private void executeSearch(SearchTask task, SearchTimeProvider timeProvider, Sea
338338
if (searchRequest.isMaxConcurrentShardRequestsSet() == false) {
339339
// we try to set a default of max concurrent shard requests based on
340340
// the node count but upper-bound it by 256 by default to keep it sane. A single
341-
// search request that fans out lots of shards should hit a cluster too hard while 256 is already a lot
342-
// we multiply is by the default number of shards such that a single request in a cluster of 1 would hit all shards of a
341+
// search request that fans out lots of shards should hit a cluster too hard while 256 is already a lot.
342+
// we multiply it by the default number of shards such that a single request in a cluster of 1 would hit all shards of a
343343
// default index.
344344
searchRequest.setMaxConcurrentShardRequests(Math.min(256, nodeCount
345345
* IndexMetaData.INDEX_NUMBER_OF_SHARDS_SETTING.getDefault(Settings.EMPTY)));

core/src/main/java/org/elasticsearch/search/SearchService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -855,7 +855,7 @@ private void parseSource(DefaultSearchContext context, SearchSourceBuilder sourc
855855

856856
/**
857857
* Shortcut ids to load, we load only "from" and up to "size". The phase controller
858-
* handles this as well since the result is always size * shards for Q_A_F
858+
* handles this as well since the result is always size * shards for Q_T_F
859859
*/
860860
private void shortcutDocIdsToLoad(SearchContext context) {
861861
final int[] docIdsToLoad;

0 commit comments

Comments
 (0)