> limit how many fields have norms enabled We have one index for approx 7000 pdfs (24GB). Of course no content is STOREd (but ANALYZEd). This very index occupies 4GB on disk and the corresponding IndexReader is 60MB. Are norms per default enabled org.apache.lucene.document .TextField?
> use disk-based doc values not field cache How is this done? > etc. such as? ;) -----Ursprüngliche Nachricht----- Von: Michael McCandless [mailto:luc...@mikemccandless.com] Gesendet: Mittwoch, 21. Mai 2014 11:21 An: Lucene Users Betreff: Re: [lucene 4.6] NPE when calling IndexReader#openIfChanged On Wed, May 21, 2014 at 3:17 AM, Clemens Wyss DEV <clemens...@mysign.ch> wrote: >> Can you just decrease IW's ramBufferSizeMB to relieve the memory pressure? > +1 > Is there something alike for IndexReaders? No, although you can take steps during indexing to reduce the RAM required during searching, e.g. limit how many fields have norms enabled, use disk-based doc values not field cache, etc. Mike McCandless http://blog.mikemccandless.com --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org For additional commands, e-mail: java-user-h...@lucene.apache.org