How to set elasticsearch index store?

There used to be an option to store the index in memory but it has been removed since it did not improve performance compared to the mmap-based store, which maps the index in memory using the mmap system call.

I would advise to use the defaults as far as the index store is concerned.