25
25
* Iterator for shards used in the search api, which also holds the {@link OriginalIndices}
26
26
* of the search request (useful especially with cross-cluster search, as each cluster has its own set of original indices) as well as
27
27
* the cluster alias.
28
- *
29
28
* @see OriginalIndices
30
29
*/
31
30
public final class SearchShardIterator implements Comparable <SearchShardIterator > {
@@ -42,7 +41,7 @@ public final class SearchShardIterator implements Comparable<SearchShardIterator
42
41
43
42
/**
44
43
* Creates a {@link SearchShardIterator} instance that iterates over a subset of the given shards
45
- * this the a given <code>shardId</code>.
44
+ * for a given <code>shardId</code>.
46
45
*
47
46
* @param clusterAlias the alias of the cluster where the shard is located
48
47
* @param shardId shard id of the group
@@ -55,21 +54,21 @@ public SearchShardIterator(@Nullable String clusterAlias, ShardId shardId, List<
55
54
56
55
/**
57
56
* Creates a {@link SearchShardIterator} instance that iterates over a subset of the given shards
58
- * this the a given <code>shardId</code>.
57
+ * for a given <code>shardId</code>.
59
58
*
60
59
* @param clusterAlias the alias of the cluster where the shard is located
61
60
* @param shardId shard id of the group
62
61
* @param shards shards to iterate
63
62
* @param originalIndices the indices that the search request originally related to (before any rewriting happened)
64
- * @param skip if true, then this group won't ha
65
- * ve matches, and it can be safely skipped from the search
63
+ * @param skip if true, then this group won't have matches, and it can be safely skipped from the search
66
64
*/
67
65
public SearchShardIterator (@ Nullable String clusterAlias , ShardId shardId , List <ShardRouting > shards , OriginalIndices originalIndices , boolean skip ) {
68
66
this (clusterAlias , shardId , shards .stream ().map (ShardRouting ::currentNodeId ).toList (), originalIndices , null , null , false , skip );
69
67
}
70
68
71
69
/**
72
70
* Creates a {@link SearchShardIterator} instance that iterates over a subset of the given shards
71
+ * for a given <code>shardId</code>.
73
72
*
74
73
* @param clusterAlias the alias of the cluster where the shard is located
75
74
* @param shardId shard id of the group
0 commit comments