Hi everyone !
I am facing a little issue with the embedded elasticsearch server my application is using, and I think you might be able to help me.
The stage of my application is, basically, to be able to download MySQL databases and store them offline to make ultra-fast requests once the server is loaded.
However, the problem is that the server opens every stored index by default, which means the more databases I have downloaded, the longer it takes to load.
That is why I have set up a solution allowing to open an index, if existing, only when a request on that database is made. However, my issue is that when it comes to that point, all of the indexes have already been opened since this is the first step that is made after the creation of the embedded ES server.
So I was wondering :
- Does my solution seem right ?
- If it does so, how could I prevent the server from automatically opening all the indices ? I guess an option in the elasticsearch.yml file would be perfect, but I could not find it...
By the way, I forgot to specify that my program and all my requests are made with the Java API.
I hope my issue was clear enough and someone will be able to help me.
By advance, thank you !