Skip to content

Commit

Permalink
testing primary first
Browse files Browse the repository at this point in the history
Signed-off-by: Joshua Palis <[email protected]>
  • Loading branch information
joshpalis committed Sep 5, 2023
1 parent 19b777a commit 01e8dec
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ private void sweepShard(ShardId shardId, ShardNodes shardNodes, String startAfte
String searchAfter = startAfter == null ? "" : startAfter;
while (searchAfter != null) {
SearchRequest jobSearchRequest = new SearchRequest().indices(shardId.getIndexName())
.preference("_shards:" + shardId.id() + "|_primary")
.preference("_shards:" + shardId.id() + "|_primary_first")
.source(
new SearchSourceBuilder().version(true)
.seqNoAndPrimaryTerm(true)
Expand Down

0 comments on commit 01e8dec

Please sign in to comment.