It's possible, but requires a custom DirectoryFactory implementation.
There isn't a built in factory to construct a RAMDirectory. You wire
it into solrconfig.xml this way:
<directoryFactory name="DirectoryFactory"
class="[fully.qualified.classname]">
<!-- Parameters as required by the implementation -->
</directoryFactory>
On Dec 31, 2009, at 5:06 AM, dipti khullar wrote:
Hi
Can somebody let me know if its possible to configure RAMDirectory
from
solrconfig.xml. Although its clearly mentioned in
https://issues.apache.org/jira/browse/SOLR-465 by Mark that he has
worked
upon it, but still I couldn't find any such property in config file
in Solr
1.4 latest download.
May be I am overlooking some simple property. Any help would be
appreciated.
Thanks
Dipti
On Fri, Nov 20, 2009 at 2:27 PM, Andrey Klochkov <akloch...@griddynamics.com
wrote:
I thought that SOLR-465 just does what is asked, i.e. one can use any
Directory implementation including RAMDirectory. Thomas, take a
look at it.
On Thu, Nov 12, 2009 at 7:55 AM, Otis Gospodnetic <
otis_gospodne...@yahoo.com> wrote:
I think not out of the box, but look at SOLR-243 issue in JIRA.
You could also put your index on ram disk (tmpfs), but it would be
useless
for writing to it.
Note that when people ask about loading the whole index in memory
explicitly, it's often a premature optimization attempt.
Otis
--
Sematext is hiring -- http://sematext.com/about/jobs.html?mls
Lucene, Solr, Nutch, Katta, Hadoop, HBase, UIMA, NLP, NER, IR
----- Original Message ----
From: Thomas Nguyen <thngu...@ign.com>
To: solr-user@lucene.apache.org
Sent: Wed, November 11, 2009 8:46:11 PM
Subject: Configuring Solr to use RAMDirectory
Is it possible to configure Solr to fully load indexes in
memory? I
wasn't able to find any documentation about this on either their
site
or
in the Solr 1.4 Enterprise Search Server book.
--
Andrew Klochkov
Senior Software Engineer,
Grid Dynamics