Well, since it happens with the LuceneBenchmark test I doubt I can give
anything better than that as an example.....I am using Python 2.4.2 and
Windows XP SP2.
Traceback (most recent call last):
File "D:\Diverse Backup
2\NTNU\Master\pakker\PyLucene-1.9\PyLucene-1.9\test\Lu
ceneBenchmark.py", line 993, in ?
LuceneBenchmark.main(sys.argv[1:])
File "D:\Diverse Backup
2\NTNU\Master\pakker\PyLucene-1.9\PyLucene-1.9\test\Lu
ceneBenchmark.py", line 462, in main
qs = cls.createQueries(LuceneBenchmark.queries, a)
File "D:\Diverse Backup
2\NTNU\Master\pakker\PyLucene-1.9\PyLucene-1.9\test\Lu
ceneBenchmark.py", line 505, in createQueries
q = qp.parseQuery(_qs)
File "C:\Program Files\Python24\lib\site-packages\PyLucene.py", line 4147,
in parseQuery
def parseQuery(*args):return _PyLucene.QueryParser_parseQuery(*args)
PyLucene.JavaError:
org.apache.lucene.queryParser.QueryParser$LookaheadSuccess
-----Opprinnelig melding-----
Fra: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] På vegne av Andi Vajda
Sendt: 3. mars 2006 21:50
Til: [email protected]
Emne: Re: [pylucene-dev] Anything changed from 1.0 to 1.9 in QueryParser?
On Fri, 3 Mar 2006, Trond Aksel Myklebust wrote:
> Maybe I should be asking on the Lucene list.
> I just replaced 1.0 with 1.9 and it works fine except for when I am
> trying to search by giving a fieldname in the query sent to
> QueryParser The exception is:
> org.apache.lucene.queryParser.QueryParser$LookaheadSuccess. If I only
> define the query as "Trondheim" it works, defining it as
> "City:Trondheim" doesnt work.
> Worked fine in 1.0.
Could you please send in simple code to reproduce this. I don't seem to be
able to make it happen.
What OS are you running on ?
Did you build PyLucene yourself ? if so, with what compiler version ?
Thanks !
Andi..
_______________________________________________
pylucene-dev mailing list
[email protected]
http://lists.osafoundation.org/mailman/listinfo/pylucene-dev
_______________________________________________
pylucene-dev mailing list
[email protected]
http://lists.osafoundation.org/mailman/listinfo/pylucene-dev