You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by zh...@apache.org on 2024/04/18 02:23:10 UTC
(lucene) branch branch_9x updated: Do not use mock merge policy for TestSimilarity (#13314)
This is an automated email from the ASF dual-hosted git repository.
zhangchao pushed a commit to branch branch_9x
in repository https://gitbox.apache.org/repos/asf/lucene.git
The following commit(s) were added to refs/heads/branch_9x by this push:
new f52e7c708a3 Do not use mock merge policy for TestSimilarity (#13314)
f52e7c708a3 is described below
commit f52e7c708a3b76411b4bf6ecc4e148a1bc76e411
Author: Zhang Chao <80...@qq.com>
AuthorDate: Thu Apr 18 09:50:40 2024 +0800
Do not use mock merge policy for TestSimilarity (#13314)
---
lucene/core/src/test/org/apache/lucene/search/TestSimilarity.java | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/lucene/core/src/test/org/apache/lucene/search/TestSimilarity.java b/lucene/core/src/test/org/apache/lucene/search/TestSimilarity.java
index 73a67daba12..1916efeee0f 100644
--- a/lucene/core/src/test/org/apache/lucene/search/TestSimilarity.java
+++ b/lucene/core/src/test/org/apache/lucene/search/TestSimilarity.java
@@ -60,7 +60,9 @@ public class TestSimilarity extends LuceneTestCase {
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));