[pylucene-dev] "Access violation" crash
Andrzej Bialecki
ab at myworkbase.com
Fri Jun 25 04:16:23 PDT 2004
Hello,
I'm running PyLucene on Windows, Python 2.3.1 + win32all. I'm getting an
access violation when executing the following script, somewhere half-way
through the printing of the results:
from PyLucene import *
dir = FSDirectory.getDirectory("e:/test1/index", False)
q = QueryParser.parse("ref:file", "body", StandardAnalyzer())
searcher = IndexSearcher(dir)
hits = searcher.search(q)
for i in range(0, hits.length() - 1):
doc = hits.doc(i)
f = doc.get("ref")
print f
I can provide the index in question if someone needs it for debugging.
It contains latin1 and UTF-8 strings in the field values.
--
Best regards,
Andrzej Bialecki
-------------------------------------------------
Software Architect, System Integration Specialist
CEN/ISSS EC Workshop, ECIMF project chair
EU FP6 E-Commerce Expert/Evaluator
-------------------------------------------------
FreeBSD developer (http://www.freebsd.org)
More information about the pylucene-dev
mailing list