On Tue, 12 Sep 2006, Yura Smolsky wrote:
You were right. :) I can use this value, but I still receive
Traceback (most recent call last):
File "testRemoteSearch2.py", line 76, in searchSorted
tfd2 = TopFieldDocs(tfd.totalHits, scoreDocs, sortFields, maxScore)
InvalidArgsError: (<type 'PyLucene.TopFieldDocs'>, '__init__', (0, [], [<SortField:
"modified"!>], -1.#INF))
I think this is b/c second is just a python list.
I guess this should work:
from PyLucene import *
tfd2 = TopFieldDocs(0, [], [], 0.0)
print tfd2
You found an unrelated error with parsing arguments passed as empty arrays.
The patch fixing this is attached and checked in.
Andi..
Index: functions.cpp
===================================================================
--- functions.cpp (revision 269)
+++ functions.cpp (working copy)
@@ -328,9 +328,9 @@
if (ok)
break;
}
- }
- else
- break;
+ else
+ break;
+ }
return -1;
}
@@ -385,9 +385,9 @@
if (ok)
break;
}
- }
- else
- break;
+ else
+ break;
+ }
return -1;
}
_______________________________________________
pylucene-dev mailing list
[email protected]
http://lists.osafoundation.org/mailman/listinfo/pylucene-dev