Re: Questions regarding Lucene query syntax

2007-05-08 Thread Daniel Einspanjer
On 5/7/07, Doron Cohen <[EMAIL PROTECTED]> wrote: With a query parser set to allowLeadingWildcard, this should do: ( +item -price:* ) ( +item +price:[0100 TO 0150] ) or, to avoid too-many-cluases risk: ( +item -price:[MIN TO MAX]) ( +item +price:[0100 TO 0150] ) where MIN and MAX cover (at least)

Re: Questions regarding Lucene query syntax

2007-05-07 Thread Doron Cohen
> Is there a way to require a portion of a query only if there are values for > > > that field in the document? > > > e.g. If I know that I only want to match movies made between 1973 and > > > 1975, > > > I would like to be able to say in my query that if the document has a > > > year, > > > it mu

Re: Questions regarding Lucene query syntax

2007-05-06 Thread Daniel Einspanjer
On 5/6/07, Erick Erickson <[EMAIL PROTECTED]> wrote: On 5/5/07, Daniel Einspanjer <[EMAIL PROTECTED]> wrote: > > The query syntax reference page talks about the NOT and the - operators, > but > it wasn't clear to me what exactly the difference is between them. Could > someone tell me briefly wh

Re: Questions regarding Lucene query syntax

2007-05-06 Thread Erick Erickson
See below... On 5/5/07, Daniel Einspanjer <[EMAIL PROTECTED]> wrote: The query syntax reference page talks about the NOT and the - operators, but it wasn't clear to me what exactly the difference is between them. Could someone tell me briefly what that difference might be or point me at some f