Hello,
I have filled PyLucene (version 0.9.8) with several documents containing six fields. Searching and displaying hits works fine with 11 documents, returning the hits with doc(i).get("fieldName"), but when I go higher than 20 documents or so I get back an error on these doc.hits. It still displays the number of hits, but no documents and fields. I have used a very basic IndexWriter and IndexSearcher. I am running Python 2.4 on Windows XP (SP2).
What is wrong here?
Henk L.
Searched for: a* Hits: 22
Traceback (most recent call last):
File "C:\Python24\Lib\site-packages\pythonwin\pywin\framework\scriptutils.py", line 310, in RunScript
exec codeObject in __main__.__dict__
File "C:\Projecten\Onderzoek\Programmeren\SearchPyLucene.py", line 114, in ?
f.printSearch(s,text)
File "C:\Projecten\Onderzoek\Programmeren\SearchPyLucene.py", line 106, in printSearch
print 'Found in', hits.doc(i).get("straat"),hits.doc(i).get("voorvoegsel"),hits.doc(i).get("nummer"),hits.doc(i).get("nummering"),hits.doc(i).get("buurt")
File "PyLucene.py", line 2135, in doc def doc(*args): return _PyLucene.Hits_doc(*args) JavaError: java.io.IOException: The handle is invalid.
_______________________________________________ pylucene-dev mailing list [email protected] http://lists.osafoundation.org/mailman/listinfo/pylucene-dev
