Elasticsearch fully supported the option to be run as part of the application,
within the same JVM process (the technique commonly referred as embedding). Although it is certainly not a recommended
practice, sometimes it was very useful and saves a lot of effort, for example during integration / system / component test runs.
https://discuss.elastic.co/t/embedding-elasticsearch-into-app/37830