/Exact-date-search-doesn%27t-work-with-1.9.1--t1418643.html#a3833741
>
>
>
> : Date: Sun, 14 May 2006 15:34:08 -0400
> : From: Beady Geraghty <[EMAIL PROTECTED] >
> : Reply-To: java-user@lucene.apache.org
> : To: java-user@lucene.apache.org
> : Subject: Re: out-of-memory
g
: To: java-user@lucene.apache.org
: Subject: Re: out-of-memory when searching, paging does not work.
:
: Here is the gist of the code:
:
: Query query = new TermQuery( new Term("contents", q.toLowerCase()));
:
:
: long start = new Date().getTime();
: Hits hits = is.search(query);
: lo
33741
: Date: Sun, 14 May 2006 15:34:08 -0400
: From: Beady Geraghty <[EMAIL PROTECTED]>
: Reply-To: java-user@lucene.apache.org
: To: java-user@lucene.apache.org
: Subject: Re: out-of-memory when searching, paging does not work.
:
: Here is the gist of the code:
:
: Query query = new Ter
Here is the gist of the code:
Query query = new TermQuery( new Term("contents", q.toLowerCase()));
long start = new Date().getTime();
Hits hits = is.search(query);
long end = new Date().getTime();
System.err.println("Found " + hits.length() +
" document(s) (in " + (end - st
Could you share at least some pseudo-code of what you're doing in the
loop of retrieving the "name" of each document? Are you storing all
of those names as you iterate?
Have you profiled your application to see exactly where the memory is
going? It is surely being eaten by your own code
I have an out-of-memroy error when returning many hits.
I am still on Lucene 1.4.3
I have a simple term query. It returned 899810 documents.
I try to retrieve the name of each document and nothing else
and I ran out of memory.
Instead of getting the names all at once, I tried to query again a