RE: QueryParser.parse() and Lucene1.4.1

2004-09-17 Thread Morus Walter
Polina Litvak writes: 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

Re: QueryParser.parse() and Lucene1.4.1

2004-09-17 Thread sergiu gordea
Hi Polima, It seems to me that your query string is not correct ... (A AND -(B)) AND = + NOT = - In lucene AND and NOT opperators are mapped internal to +/-, (AND and NOT are supported only because they are comming from natural language) so ... A + - (B) makes no sense ... Sergiu Polina Litvak

RE: QueryParser.parse() and Lucene1.4.1

2004-09-17 Thread Polina Litvak
-Original Message- From: Morus Walter [mailto:[EMAIL PROTECTED] Sent: September 17, 2004 2:31 AM To: Lucene Users List Subject: RE: QueryParser.parse() and Lucene1.4.1 Polina Litvak writes: Hi Daniel, I just downloaded the latest version of Lucene and tried the whole thing again: I ran my code

RE: QueryParser.parse() and Lucene1.4.1

2004-09-16 Thread Polina Litvak
/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

Re: QueryParser.parse() and Lucene1.4.1

2004-09-16 Thread Daniel Naber
On Thursday 16 September 2004 19:38, Polina Litvak wrote: I ran my code first with lucene-1.3-final.jar, getting the query Field:(A AND -(B)) parsed into +Field:A -Field:B This code: Query query = QueryParser.parse(Field:(AAA AND -(BBB)), field, new StandardAnalyzer());

QueryParser.parse() and Lucene1.4.1

2004-09-15 Thread Polina Litvak
I have a question regarding QueryParser and lucene-1.4.1.jar: When using lucene-1.3-final.jar, a query of the form: Field:(A AND -(B)) was parsed into +Field:A -Field:B (using QueryParser.parse()). After making the switch to lucene-1.4.1.jar, the same query is being parsed into Field:A Field:-

Re: QueryParser.parse() and Lucene1.4.1

2004-09-15 Thread Daniel Naber
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 --