I am trying to use elastic search in an electron desktop app that needs to index maybe 15mb of documents and search them. However since this would be running on a local user's computer I was wondering how can I make elastic as light weight as needed? I can change the JVM memory settings but I'm not really sure what the implications of that are.
Another question is how can I identify exactly which files from the elastic download zip are needed and delete the ones that are not.
Finally is it possible to use something like javapackager (https://docs.oracle.com/javase/9/tools/javapackager.htm#JSWOR719) to package only the parts of the JVM that are needed to run elastic?