lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Hostetter <>
Subject Re: OutOfMemoryError on small search in large, simple index
Date Tue, 13 Nov 2007 15:26:54 GMT

: > Can it be right that memory usage depends on size of the index rather
: > than size of the result?
: Yes, see IndexWriter.setTermIndexInterval(). How much RAM are you giving to 
: the JVM now?

and in general: yes.  Lucene is using memory so that *lots* of searches 
can be fast ... if you reuse the searcher object for multiple searches, 
they will all reuse those same internal memory structures.

there's also the specific issue of norms ... did you OMIT_NORMS when you 
indexed your data? do you need norms for this field? (if you aren't sure, 
take a look at the scoring docs)


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message