I have been working with Lucene.Net and FSDirectoryfor some time, so I am familiar with the basics of working with it. However, now I am trying to rewrite some key code, using RAMDirectory, when possible, to speed up the use of the index.
Loading an existing FSDirectory into RAMDirectory is quite simple, just using the appropriate constructor. However, I cannot figure out how to burn it to disk again.
I saw the mention of the static Directory.copy () method in the Java version, but this does not seem to exist in Lucene.Net.
Is it possible?
Update: It turns out I used an old version of Lucene.Net that did not support this method. The "official binaries" on the Lucene.Net official site appear to be completely out of date. Thanks to CVertex for using NuGet to download and install the latest version of Lucene directly in Visual Studio.
source
share