LUCENE-7161 - mitigate not enough docs test issue while looking for a better solution

This commit is contained in:
Tommaso Teofili 2016-05-20 07:04:04 +02:00
parent ea26dd5855
commit 270d3859ab
1 changed files with 2 additions and 3 deletions

View File

@ -41,7 +41,6 @@ import org.apache.lucene.search.QueryUtils;
import org.apache.lucene.search.TermQuery;
import org.apache.lucene.store.Directory;
import org.apache.lucene.util.LuceneTestCase;
import org.junit.Test;
public class TestMoreLikeThis extends LuceneTestCase {
@ -281,10 +280,10 @@ public class TestMoreLikeThis extends LuceneTestCase {
// add series of shop docs
RandomIndexWriter writer = new RandomIndexWriter(random(), dir);
for (int i = 0; i < 100; i++) {
for (int i = 0; i < 300; i++) {
addShopDoc(writer, "it", itShopItemForSale, itShopItemNotForSale);
}
for (int i = 0; i < 30; i++) {
for (int i = 0; i < 300; i++) {
addShopDoc(writer, "clothes", clothesShopItemForSale, clothesShopItemNotForSale);
}
// Input Document is a clothes shop