mirror of https://github.com/apache/lucene.git
LUCENE-7161 - mitigate not enough docs test issue while looking for a better solution
This commit is contained in:
parent
ea26dd5855
commit
270d3859ab
|
@ -41,7 +41,6 @@ import org.apache.lucene.search.QueryUtils;
|
||||||
import org.apache.lucene.search.TermQuery;
|
import org.apache.lucene.search.TermQuery;
|
||||||
import org.apache.lucene.store.Directory;
|
import org.apache.lucene.store.Directory;
|
||||||
import org.apache.lucene.util.LuceneTestCase;
|
import org.apache.lucene.util.LuceneTestCase;
|
||||||
import org.junit.Test;
|
|
||||||
|
|
||||||
public class TestMoreLikeThis extends LuceneTestCase {
|
public class TestMoreLikeThis extends LuceneTestCase {
|
||||||
|
|
||||||
|
@ -281,10 +280,10 @@ public class TestMoreLikeThis extends LuceneTestCase {
|
||||||
|
|
||||||
// add series of shop docs
|
// add series of shop docs
|
||||||
RandomIndexWriter writer = new RandomIndexWriter(random(), dir);
|
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);
|
addShopDoc(writer, "it", itShopItemForSale, itShopItemNotForSale);
|
||||||
}
|
}
|
||||||
for (int i = 0; i < 30; i++) {
|
for (int i = 0; i < 300; i++) {
|
||||||
addShopDoc(writer, "clothes", clothesShopItemForSale, clothesShopItemNotForSale);
|
addShopDoc(writer, "clothes", clothesShopItemForSale, clothesShopItemNotForSale);
|
||||||
}
|
}
|
||||||
// Input Document is a clothes shop
|
// Input Document is a clothes shop
|
||||||
|
|
Loading…
Reference in New Issue