Faster search in Lucene - Is there a way to keep the whole index in RAM?

后端 未结 3 892
谎友^
谎友^ 2020-12-13 01:16

Is there a way of keeping the index in RAM instead of keeping it on the hard disk?

We want to make searching faster.

3条回答
  •  误落风尘
    2020-12-13 01:32

    A RAM disk could be a solution for this. A mini-HOWTO is available at http://www.vanemery.com/Linux/Ramdisk/ramdisk.html. Mount the RAM disk as your index directory, and you should be done.

提交回复
热议问题