Skip to content

Apache Lucene open-source search software

LUCENE-7161 - give enough similar docs for mlt to match

Tommaso Teofili4751b83c9779
diff --git a/lucene/queries/src/test/org/apache/lucene/queries/mlt/TestMoreLikeThis.java b/lucene/queries/src/test/org/apache/lucene/queries/mlt/TestMoreLikeThis.java
index 5e6466fc061..f50a3f1542f 100644
--- a/lucene/queries/src/test/org/apache/lucene/queries/mlt/TestMoreLikeThis.java
+++ b/lucene/queries/src/test/org/apache/lucene/queries/mlt/TestMoreLikeThis.java
@@ -284,7 +284,7 @@ public class TestMoreLikeThis extends LuceneTestCase {
for (int i = 0; i < 100; i++) {
addShopDoc(writer, "it", itShopItemForSale, itShopItemNotForSale);
}
- for (int i = 0; i < 10; i++) {
+ for (int i = 0; i < 30; i++) {
addShopDoc(writer, "clothes", clothesShopItemForSale, clothesShopItemNotForSale);
}
// Input Document is a clothes shop