That bug and the previous one with returning ScoreDoc[] are now both fixed in svn. Thanks for finding them.


Andi..

On Fri, 4 Feb 2005, Yura Smolsky wrote:

Hello.

TopFieldDocs.fields is not iterable:

totalHits: 26
<PyCObject object at 0x0095AAA0>
Traceback (most recent call last):
 File "RemoteSearcher.py", line 65, in ?
   for sortF in topFieldDocs.fields:
TypeError: iteration over non-sequence


Here is piece of code:

topFieldDocs = searcher.search(query, None, 10, sort)

print "totalHits:", topFieldDocs.totalHits;
print topFieldDocs.fields
for sortF in topFieldDocs.fields:
       print sortF

Am I wrong?

Yura Smolsky



_______________________________________________
pylucene-dev mailing list
[email protected]
http://lists.osafoundation.org/mailman/listinfo/pylucene-dev

_______________________________________________
pylucene-dev mailing list
[email protected]
http://lists.osafoundation.org/mailman/listinfo/pylucene-dev

Reply via email to