Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Ranjith Ramachandra committed Sep 2, 2023
1 parent eefca84 commit 29f5de5
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,7 @@ public void testMultiGetWithVersion() throws Exception {

// Version from Lucene index
refresh();
response = client().prepareMultiGet()
response = client().prepareMultiGet().setPreference("_primary")
.add(new MultiGetRequest.Item(indexOrAlias(), "1").version(Versions.MATCH_ANY))
.add(new MultiGetRequest.Item(indexOrAlias(), "1").version(1))
.add(new MultiGetRequest.Item(indexOrAlias(), "1").version(2))
Expand Down Expand Up @@ -512,7 +512,7 @@ public void testMultiGetWithVersion() throws Exception {

// Version from Lucene index
refresh();
response = client().prepareMultiGet()
response = client().prepareMultiGet().setPreference("_primary")
.add(new MultiGetRequest.Item(indexOrAlias(), "2").version(Versions.MATCH_ANY))
.add(new MultiGetRequest.Item(indexOrAlias(), "2").version(1))
.add(new MultiGetRequest.Item(indexOrAlias(), "2").version(2))
Expand Down

0 comments on commit 29f5de5

Please sign in to comment.