[pylucene-dev] TopFieldDocs returned from indexSearcher are
wrong
Yura Smolsky
info at altervisionmedia.com
Tue Sep 12 09:56:39 PDT 2006
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/
More information about the pylucene-dev
mailing list