[pylucene-dev] Re: Bug in sample files
Andi Vajda
vajda at osafoundation.org
Wed May 31 09:13:48 PDT 2006
On Wed, 31 May 2006, Ken Kinder wrote:
> Here's a fix:
>
> --- /home/kkinder/PyLucene-src-2.0.0.orig/samples/SearchFiles.py
> 2005-12-03 12:38:32.000000000 -0700
> +++ SearchFiles.py 2006-05-31 00:05:24.000000000 -0600
> @@ -21,7 +21,7 @@
>
> print
> print "Searching for:", command
> - query = QueryParser.parse(command, "contents", analyzer)
> + query = QueryParser("contents", analyzer).parse(command)
> hits = searcher.search(query)
> print "%s total matching documents." % hits.length()
> for i, doc in hits:
>
Indeed. Sorry, I saw this message after I replied to the previous one.
Andi..
More information about the pylucene-dev
mailing list