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
Can anyone help me with this problem?
Thanks.
Ashwin


-Ashwin Thapar

_________________________________________________________________
Don't just search. Find. Check out the new MSN Search! http://search.msn.com/

_______________________________________________
pylucene-dev mailing list
[email protected]
http://lists.osafoundation.org/mailman/listinfo/pylucene-dev

Reply via email to