Skip to content

Commit

Permalink
Do not use mock merge policy for TestSimilarity (#13314)
Browse files Browse the repository at this point in the history
  • Loading branch information
easyice committed Apr 18, 2024
1 parent 821fc42 commit f52e7c7
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,9 @@ public void testSimilarity() throws Exception {
new RandomIndexWriter(
random(),
store,
newIndexWriterConfig(new MockAnalyzer(random())).setSimilarity(new SimpleSimilarity()));
newIndexWriterConfig(new MockAnalyzer(random()))
.setSimilarity(new SimpleSimilarity())
.setMergePolicy(newMergePolicy(random(), false)));

Document d1 = new Document();
d1.add(newTextField("field", "a c", Field.Store.YES));
Expand Down

0 comments on commit f52e7c7

Please sign in to comment.