I'm using elasticsearch 5.6, and the brand new RestHighLevelClient.
I know that previously, with the nodebuilder, it was possible to configure elastic to run in-memory for testing (i.e. as part of a unit test after the build phase) like so: nodeBuilder().local(true)...
Is it possible to run an elastic instance in memory with the new RestHighLevelClient, or by another method in version 5.6?
From the referenced post it seems that the reason you no longer support embedded is that it's unsafe for production. It's a common use case to want to unit / integration test ES code outside of a production environment; many of your clients currently do this. This is similar to in memory relational database testing, which can also be useful.
May I suggest that you consider providing some kind of support for embedded testing in a future release. This will be impacting my choice as I decide which search tool our company will use going forward, as will the quality and tone of responses I receive here.
Use the Gradle tools elasticsearch already has. You can read some information about this here: #21119. This sample project shows how to use Elasticsearch Test Classes
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.