Exception when using elastic4s with elastic-search and spray-routing Exception when using elastic4s with elastic-search and spray-routing elasticsearch elasticsearch

Exception when using elastic4s with elastic-search and spray-routing


I suppose you should use ElasticClient.local in this case, as specified in elastic4s docs:

https://github.com/sksamuel/elastic4s

To specify settings for the local node you can pass in a settings object like this:val settings = ImmutableSettings.settingsBuilder()      .put("http.enabled", false)      .put("path.home", "/var/elastic/") val client = ElasticClient.local(settings.build)