lucene-pylucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From va...@apache.org
Subject svn commit: r1045394 - in /lucene/pylucene/branches/branch_3x: java/org/apache/pylucene/store/PythonDirectory.java test/test_Sort.py
Date Mon, 13 Dec 2010 22:24:19 GMT
Author: vajda
Date: Mon Dec 13 22:24:19 2010
New Revision: 1045394

URL: http://svn.apache.org/viewvc?rev=1045394&view=rev
Log:
caught up with Lucene 3.x changes

Modified:
    lucene/pylucene/branches/branch_3x/java/org/apache/pylucene/store/PythonDirectory.java
    lucene/pylucene/branches/branch_3x/test/test_Sort.py

Modified: lucene/pylucene/branches/branch_3x/java/org/apache/pylucene/store/PythonDirectory.java
URL: http://svn.apache.org/viewvc/lucene/pylucene/branches/branch_3x/java/org/apache/pylucene/store/PythonDirectory.java?rev=1045394&r1=1045393&r2=1045394&view=diff
==============================================================================
--- lucene/pylucene/branches/branch_3x/java/org/apache/pylucene/store/PythonDirectory.java
(original)
+++ lucene/pylucene/branches/branch_3x/java/org/apache/pylucene/store/PythonDirectory.java
Mon Dec 13 22:24:19 2010
@@ -28,6 +28,7 @@ public class PythonDirectory extends Dir
     private long pythonObject;
 
     public PythonDirectory(LockFactory factory)
+        throws IOException
     {
         setLockFactory(factory);
     }

Modified: lucene/pylucene/branches/branch_3x/test/test_Sort.py
URL: http://svn.apache.org/viewvc/lucene/pylucene/branches/branch_3x/test/test_Sort.py?rev=1045394&r1=1045393&r2=1045394&view=diff
==============================================================================
--- lucene/pylucene/branches/branch_3x/test/test_Sort.py (original)
+++ lucene/pylucene/branches/branch_3x/test/test_Sort.py Mon Dec 13 22:24:19 2010
@@ -935,7 +935,7 @@ class SortTestCase(TestCase):
         """
 
         # ScoreDoc[] result = searcher.search(query, None, 1000, sort).scoreDocs
-        hits = searcher.search(query, None, len(expectedResult), sort)
+        hits = searcher.search(query, None, len(expectedResult) or 1, sort)
         sds = hits.scoreDocs
 
         self.assertEqual(hits.totalHits, len(expectedResult))



Mime
View raw message