I would like to use MMapDirectory at the data indexing phase (in a batch).
And then switch to index to in-memory and read only at time of serving real
user queries to optimize the search latency. I used to achieve that when
directly deal with Lucene by using RAMDirectory and read-only Searcher.
Hi Jörg,
Does ES allow switching from file-based store to memory-based store without
re-indexing? We used to use file-based store to run a batch index, then
switch to read-only memory-based index when using Lucene directly. We've
found that read-only RAMDirectory is 20% faster than