: Is there a way to use a MMapDirectory instead of FSDirectory within Solr ?
i'm not very familiar with MMapDirectory but according to the javadocs...
To use this, 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.
...have you tried that? Solr doesn't do anything crazy with the
directory, so that should work.
(incidently, if someone wanted to submit a patch creating a new
"SolrDirectoryFactory" which could be configured in the <mainIndex> or
<indexDefaults> section of solrconfig.xml to let people pick any arbitrary
Directory implementation, that would be a pretty cool patch)
-Hoss