[pylucene-dev] Trouble with SearchFiles.py
vajda at osafoundation.org
Fri Jan 26 18:35:25 PST 2007
On Sat, 27 Jan 2007, ashwin thapar wrote:
> I am running Python2.4 and PyLucene Version 2.0.0. I have a folder containing
> several text files. I successfully run IndexFiles.py form the Python sample
> files folder. However, when I attempt to run SearchFiles.py, I get the
> following error message:
> Searching for: fast
> Traceback (most recent call last):
> File "SearchFiles.py", line 37, in ?
> run(searcher, analyzer)
> File "SearchFiles.py", line 24, in run
> query = QueryParser.parse(command, "contents", analyzer)
> TypeError: descriptor 'parse' requires a 'PyLucene.QueryParser' object but
> received a 'str'
> The same procedure worked without any problem on PyLucene 1.9, the error has
> only arisen after the upgrade. (I installed the new PyLucene 2.0.0, and am
> using the PyLucene 2.0.0 sample files
This is a known and fixed bug. Get the latest PyLucene.
I attached the latest SearchFiles.py or get it from 
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 1476 bytes
Url : http://lists.osafoundation.org/pipermail/pylucene-dev/attachments/20070126/49bd451b/SearchFiles.bin
More information about the pylucene-dev