[pylucene-dev] displaying a large number of hits

Andi Vajda vajda at osafoundation.org
Sun Apr 24 20:20:28 PDT 2005


You may have hit the bug I fixed last Wednesday. Some objects would get 
garbage collected too early. Could you please try the win32 build I uploaded 
to http://downloads.osafoundation.org/PyLucene/tmp/PyLucene-win32-0.9.8-189.tar.gz
and see if that solves the problem you encountered ?

Thanks !

Andi..

On Sun, 24 Apr 2005 ticino at hccnet.nl wrote:

> 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
> pylucene-dev at osafoundation.org
> http://lists.osafoundation.org/mailman/listinfo/pylucene-dev
>


More information about the pylucene-dev mailing list