This being python, I think it should be possible to create a tuple
object with some additional methods on it so that you could say
either:
for hit in hits:
print hit.getDocument()
print hit.getScore()
or
for i, doc in hits:
print doc
print hits.score(i)
I made the requested change. Both above forms now work.
I just uploaded a 2.0rc1-7 source tarball to
pylucene.osafoundation.org which includes this.
Wow, that was quick. Thanks!
PS, you still don't recommend gcc 4.1 for anything, right? I'm trying
to build c++ and python versions of my program to see how the speed
compares, but PyLucene from the subversion trunk compiled under my old
4.1 snapshot makes python crash. If you still recommend against using
the 4 series, I won't spend too much time trying to debug things.
_______________________________________________
pylucene-dev mailing list
[email protected]
http://lists.osafoundation.org/mailman/listinfo/pylucene-dev