Skip to content

Commit 1c75721

Browse files
committed
Fix javadocs
1 parent 9c705cd commit 1c75721

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

server/src/main/java/org/elasticsearch/action/search/SearchShardIterator.java

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
* Iterator for shards used in the search api, which also holds the {@link OriginalIndices}
2626
* of the search request (useful especially with cross-cluster search, as each cluster has its own set of original indices) as well as
2727
* the cluster alias.
28-
*
2928
* @see OriginalIndices
3029
*/
3130
public final class SearchShardIterator implements Comparable<SearchShardIterator> {
@@ -42,7 +41,7 @@ public final class SearchShardIterator implements Comparable<SearchShardIterator
4241

4342
/**
4443
* 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>.
4645
*
4746
* @param clusterAlias the alias of the cluster where the shard is located
4847
* @param shardId shard id of the group
@@ -55,21 +54,21 @@ public SearchShardIterator(@Nullable String clusterAlias, ShardId shardId, List<
5554

5655
/**
5756
* 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>.
5958
*
6059
* @param clusterAlias the alias of the cluster where the shard is located
6160
* @param shardId shard id of the group
6261
* @param shards shards to iterate
6362
* @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
6664
*/
6765
public SearchShardIterator(@Nullable String clusterAlias, ShardId shardId, List<ShardRouting> shards, OriginalIndices originalIndices, boolean skip) {
6866
this(clusterAlias, shardId, shards.stream().map(ShardRouting::currentNodeId).toList(), originalIndices, null, null, false, skip);
6967
}
7068

7169
/**
7270
* Creates a {@link SearchShardIterator} instance that iterates over a subset of the given shards
71+
* for a given <code>shardId</code>.
7372
*
7473
* @param clusterAlias the alias of the cluster where the shard is located
7574
* @param shardId shard id of the group

0 commit comments

Comments
 (0)