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 Wed, 02 Jan 2008 07:38:36 GMT

: On Wed, 2007-12-12 at 11:37 +0100, Lars Clausen wrote:

: Seems there's a reason we still use all this memory:
: SegmentReader.fakeNorms() creates the full-size array for us anyway, so
: the memory usage cannot be avoided as long as somebody asks for the
: norms array at any point.  The solution is starting to look like a patch

Minor (late) nit:  fakeNorms will reuse the same array for every field 
that doesn't have norms -- so while omiting norms from only one field may 
not save you any RAM, omiting norms for 10 fields will save you the RAM 
used by 9 of those fields.  (correct?)


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

View raw message