Skip to content

Commit 3871915

Browse files
committed
Fix typo on comment
1 parent 8c8b1dc commit 3871915

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
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: 2 additions & 2 deletions
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;
@@ -963,7 +963,7 @@ public boolean canMatch(ShardSearchRequest request) throws IOException {
963963
}
964964

965965
/**
966-
* Returns true iff the given search source builder can be early terminated by rewriting to a match none query. Or in other words
966+
* Returns true if the given search source builder can be early terminated by rewriting to a match none query. Or in other words
967967
* if the execution of a the search request can be early terminated without executing it. This is for instance not possible if
968968
* a global aggregation is part of this request or if there is a suggest builder present.
969969
*/

0 commit comments

Comments
 (0)