Hi Daniel, I just downloaded the latest version of Lucene and tried the whole thing again: I ran my code first with lucene-1.3-final.jar, getting the query Field:(A AND -(B)) parsed into +Field:A -Field:B, and then I ran exactly the same code with lucene-1.4.1.jar and got the output parsed into Field:A Field:- Field:B.
I also read Lucene's documentation (http://cvs.apache.org/viewcvs.cgi/* checkout*/jakarta-lucene/CHANGES.txt?rev=1.85), and it does mention a change to the "+" and "-" operators: 13. Changed QueryParser.jj to allow '-' and '+' within tokens: http://issues.apache.org/bugzilla/show_bug.cgi?id=27491 (Morus Walter via Otis) So is this behaviour a bug, or Lucene1.4 is not backwards compatible? Polina -----Original Message----- From: Daniel Naber [mailto:[EMAIL PROTECTED] Sent: September 15, 2004 5:07 PM To: Lucene Users List Subject: Re: QueryParser.parse() and Lucene1.4.1 On Wednesday 15 September 2004 21:58, Polina Litvak wrote: > Does anyone know how to work around this new feature ? I can't remember any changes in this area, but I just tried with the current version from CVS and the output is the one which you want. Regards Daniel -- http://www.danielnaber.de --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]