Re: BooleanQuery question

2006-07-22 Thread Chris Hostetter
: >you can't have a boolean query containing only MUST_NOT clauses (which is : >what (-(FILE:abstract.htm)) is. it matches no documents, so the mandatory : >qualification on it causes the query to fail for all docs. : : This is true for the search queries, but it makes sense in a query : filter I

Re: BooleanQuery question

2006-07-21 Thread Paul Borgermans
Hi you can't have a boolean query containing only MUST_NOT clauses (which is what (-(FILE:abstract.htm)) is. it matches no documents, so the mandatory qualification on it causes the query to fail for all docs. This is true for the search queries, but it makes sense in a query filter IMHO. I e

Re: BooleanQuery question

2006-07-19 Thread Chris Hostetter
: In my mind this restriction only apply on a query with just a MUST_NOT : clause and not to a composed query. I've wrong. right ... it's an issue for any BooleanQuery, regardless of how that query may be wrapped in other boolean queries. -Hoss --

Re: BooleanQuery question

2006-07-19 Thread Nicolas Labrot
In my mind this restriction only apply on a query with just a MUST_NOT clause and not to a composed query. I've wrong. thanks a lot, Nicolas : If I search with boolQuery, Lucene doesn't find anything. : If I modify by hand the query from "+(-(FILE:abstract.htm)) : +(PATH:/bssrs)" to "-(FILE:

Re: BooleanQuery question

2006-07-19 Thread Chris Hostetter
: If I search with boolQuery, Lucene doesn't find anything. : If I modify by hand the query from "+(-(FILE:abstract.htm)) : +(PATH:/bssrs)" to "-(FILE:abstract.htm) +(PATH:/bssrs)", Lucene find : the correct list of document. : : Does somebody know why ? you can't have a boolean query containing

RE: BooleanQuery question

2006-07-10 Thread Van Nguyen
That worked... thanks! -Original Message- From: Michael D. Curtin [mailto:[EMAIL PROTECTED] Sent: Thursday, July 06, 2006 1:04 PM To: java-user@lucene.apache.org Subject: Re: BooleanQuery question Van Nguyen wrote: > I just want results that have: > > ID: 1234 OR 234

Re: BooleanQuery question

2006-07-06 Thread Michael D. Curtin
Van Nguyen wrote: I just want results that have: ID: 1234 OR 2344 OR 2323 LOCATION: A1 LANGUAGE: ENU This query returns everything from my index. How would I create a query that will only return results the must have LOCATION and LANGUAGE and have only those three IDs. I think you'll ne