Re: Regarding Lucene Query

2011-09-25 Thread Erick Erickson
Can we see the code you change when you get this error? The easiest thing to do is to increase the memory given the JVM with -Xmx. How big are the documents? Are you saying you're returning 100,000 docs at once? If so, the -Xmx should be all you need. Best Erick On Sat, Sep 24, 2011 at 11:51 PM

Regarding Lucene Query

2011-09-25 Thread Yogesh patel
Respected, Hello, I am using lucene with my java application. I am having one confusion. I want to paginate my search and want 20-30 results and total results are 10. So When i query in application, it gives me heap space error. So can we fire lucene query so we can only get 20-30 results fro

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

Questions regarding Lucene query syntax

2007-05-05 Thread Daniel Einspanjer
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 further docs that describe it? Is there a way to require a portion of a