lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Polina Litvak" <>
Subject RE: QueryParser.parse() and Lucene1.4.1
Date Thu, 16 Sep 2004 17:38:17 GMT
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 (*
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:
    (Morus Walter via Otis)

So is this behaviour a bug, or Lucene1.4 is not backwards compatible?


-----Original Message-----
From: Daniel Naber [] 
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.



To unsubscribe, e-mail:
For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message