As the subject states.
I have a large index (~600mb) stored on the file system and am finding my
range query is rather slow.
I would like to pull the index into RAM and query against it to compare
speed.
Does simply doing the following accomplish this:
Directory ram = new RAMDirectory();
Directory dir = FSDirectory.GetDirectory(path, false);
ram = dir;
IndexSearcher searcher = new IndexSearcher(ram);
.
If so, I don't notice any difference in performance - my search still takes
a couple seconds to return .
Any thoughts?