lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tomm...@apache.org
Subject lucene-solr:master: LUCENE-7161 - mitigate not enough docs test issue while looking for a better solution
Date Fri, 20 May 2016 05:04:31 GMT
Repository: lucene-solr
Updated Branches:
  refs/heads/master ee5836746 -> 1aceb67e2


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


Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/1aceb67e
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/1aceb67e
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/1aceb67e

Branch: refs/heads/master
Commit: 1aceb67e28136f80b31d965916cf518c4d397de7
Parents: ee58367
Author: Tommaso Teofili <tommaso@apache.org>
Authored: Fri May 20 07:04:04 2016 +0200
Committer: Tommaso Teofili <tommaso@apache.org>
Committed: Fri May 20 07:04:04 2016 +0200

----------------------------------------------------------------------
 .../test/org/apache/lucene/queries/mlt/TestMoreLikeThis.java    | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/1aceb67e/lucene/queries/src/test/org/apache/lucene/queries/mlt/TestMoreLikeThis.java
----------------------------------------------------------------------
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 f50a3f1..89722db 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
@@ -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


Mime
View raw message