Hello, Andi.
AV> On Tue, 12 Sep 2006, Yura Smolsky wrote:
>> AV> In python, to create a float with negative infinity you say:
>> float('-inf')
>>
>> so I need to recreate this value?
AV> I'm not sure I understand your question.
well, i have found that I can use float(-1e3000) as -infinity value,
but when I pass it to TopFieldDocs constructor I get InvalidArgsError:
Traceback (most recent call last):
File "testRemoteSearch2.py", line 75, in searchSorted
tfd2 = TopFieldDocs(tfd.totalHits, scoreDocs, sortFields, maxScore)
InvalidArgsError: (<type 'PyLucene.TopFieldDocs'>, '__init__', (0, [],
[<SortField: "modified"!>], -1.#INF))
--
Yura Smolsky,
http://altervisionmedia.com/
_______________________________________________
pylucene-dev mailing list
[email protected]
http://lists.osafoundation.org/mailman/listinfo/pylucene-dev