[Docs] Fix some typos in comments (#28098)
This commit is contained in:
parent
a85772cbe5
commit
234c37a323
|
@ -313,7 +313,7 @@ public class TransportSearchAction extends HandledTransportAction<SearchRequest,
|
|||
|
||||
// optimize search type for cases where there is only one shard group to search on
|
||||
if (shardIterators.size() == 1) {
|
||||
// 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
|
||||
// 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
|
||||
searchRequest.searchType(QUERY_THEN_FETCH);
|
||||
}
|
||||
if (searchRequest.isSuggestOnly()) {
|
||||
|
@ -338,8 +338,8 @@ public class TransportSearchAction extends HandledTransportAction<SearchRequest,
|
|||
if (searchRequest.isMaxConcurrentShardRequestsSet() == false) {
|
||||
// we try to set a default of max concurrent shard requests based on
|
||||
// the node count but upper-bound it by 256 by default to keep it sane. A single
|
||||
// search request that fans out lots of shards should hit a cluster too hard while 256 is already a lot
|
||||
// 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
|
||||
// search request that fans out lots of shards should hit a cluster too hard while 256 is already a lot.
|
||||
// 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
|
||||
// default index.
|
||||
searchRequest.setMaxConcurrentShardRequests(Math.min(256, nodeCount
|
||||
* IndexMetaData.INDEX_NUMBER_OF_SHARDS_SETTING.getDefault(Settings.EMPTY)));
|
||||
|
|
|
@ -855,7 +855,7 @@ public class SearchService extends AbstractLifecycleComponent implements IndexEv
|
|||
|
||||
/**
|
||||
* Shortcut ids to load, we load only "from" and up to "size". The phase controller
|
||||
* handles this as well since the result is always size * shards for Q_A_F
|
||||
* handles this as well since the result is always size * shards for Q_T_F
|
||||
*/
|
||||
private void shortcutDocIdsToLoad(SearchContext context) {
|
||||
final int[] docIdsToLoad;
|
||||
|
|
Loading…
Reference in New Issue