lucene-solr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yo...@apache.org
Subject svn commit: r794812 - /lucene/solr/trunk/src/test/org/apache/solr/search/TestIndexSearcher.java
Date Thu, 16 Jul 2009 19:46:35 GMT
Author: yonik
Date: Thu Jul 16 19:46:35 2009
New Revision: 794812

URL: http://svn.apache.org/viewvc?rev=794812&view=rev
Log:
change test due to lucene open() changes - always multireader

Modified:
    lucene/solr/trunk/src/test/org/apache/solr/search/TestIndexSearcher.java

Modified: lucene/solr/trunk/src/test/org/apache/solr/search/TestIndexSearcher.java
URL: http://svn.apache.org/viewvc/lucene/solr/trunk/src/test/org/apache/solr/search/TestIndexSearcher.java?rev=794812&r1=794811&r2=794812&view=diff
==============================================================================
--- lucene/solr/trunk/src/test/org/apache/solr/search/TestIndexSearcher.java (original)
+++ lucene/solr/trunk/src/test/org/apache/solr/search/TestIndexSearcher.java Thu Jul 16 19:46:35
2009
@@ -54,8 +54,8 @@
     SolrIndexReader r2 = sr2.getSearcher().getReader();
 
     // make sure the readers share the first segment
-    // TODO: doesn't currently work going from segment -> multi
-    // assertEquals(r1.getLeafReaders()[0], r2.getLeafReaders()[0]);
+    // Didn't work w/ older versions of lucene2.9 going from segment -> multi
+    assertEquals(r1.getLeafReaders()[0], r2.getLeafReaders()[0]);
 
     assertU(adoc("id","5", "v_f","3.14159"));
     assertU(adoc("id","6", "v_f","8983"));



Mime
View raw message