[pylucene-dev] Trouble with SearchFiles.py
Andi Vajda
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 [1]
Andi..
[1] http://svn.osafoundation.org/pylucene/trunk/samples/SearchFiles.py
-------------- next part --------------
A non-text attachment was scrubbed...
Name: SearchFiles.py
Type: text/x-python-script
Size: 1476 bytes
Desc:
Url : http://lists.osafoundation.org/pipermail/pylucene-dev/attachments/20070126/49bd451b/SearchFiles.bin
More information about the pylucene-dev
mailing list