Is there a benefit to using MMapDirectory instead of, say, tmpfs (RAM disk) under Linux?
Otis -- Sematext -- http://sematext.com/ -- Lucene - Solr - Nutch ----- Original Message ---- > From: Mark Miller <markrmil...@gmail.com> > To: solr-user@lucene.apache.org > Sent: Monday, July 6, 2009 9:28:43 AM > Subject: Re: Using MMapDirectory > > Marc Sturlese wrote: > > Hey there, > > > > For testing purpose I am trying to use lucene's MMapDirectory in a recent > > Solr nightly instance. I have read in Lucene's documentation: > > "To use MMapDirectory, invoke Java with the System property > > org.apache.lucene.FSDirectory.class set to > > org.apache.lucene.store.MMapDirectory. This will cause > > FSDirectory.getDirectory(File,boolean) to return instances of this class. " > > > > Do I have to change something in solrconfig.xml or modifying system property > > is just enough? > > Thanks in advance. > > > The system property won't do it. You will have to try the custom > DirectoryFactory in solrconfig.xml. > > Report back how it goes - havn't tried Solr with MMapDirectory before myself. > > -- - Mark > > http://www.lucidimagination.com