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. 

So, start your servlet container with 
-Dorg.apache.lucene.FSDirectory.class=org.apache.lucene.store.MMapDirectory

Otis
--
Sematext is hiring -- http://sematext.com/about/jobs.html?mls
Lucene, Solr, Nutch, Katta, Hadoop, HBase, UIMA, NLP, NER, IR



----- Original Message ----
> From: ba ba <solrm...@gmail.com>
> To: solr-user@lucene.apache.org
> Sent: Thu, November 5, 2009 2:55:42 PM
> Subject: Set MMap in Solr
> 
> Hi,
> 
> I'm trying to set my default directory to MMap. I saw that this is done by
> specifying here
> 
> A DirectoryProvider plugin can be configured in solrconfig.xml with the
> following XML:
> 
> 
> 
> 
> in solrconfig.xml.
> 
> This did not work for me when I put in the MMapDirectory class name.
> 
> I got this information from here
> http://issues.apache.org/jira/browse/SOLR-465?focusedCommentId=12715282#action_12715282
> 
> I'm using the latest nightly build.
> 
> If anyone knows how to configure solr to use MMap, please let me know. I
> would greatly appreciate it.
> 
> Thanks.

Reply via email to