score:0

Accepted answer

You can do this using the same method you would for the Java client. The ImmutableSettings is a Java Client class not something that is specific to elastic4s.

To load your properties file from the classpath, eg if you have something in src/main/resources/com/package/settings.props

ImmutableSettings.settingsBuilder().loadFromClasspath("/com/package/mysettings.yaml")

Or if you want to load from an input stream:

ImmutableSettings.settingsBuilder().loadFromStream(myinputstream)

There are other methods too, just check out the ImmutableSettings.settingsBuilder object.


Related Query

More Query from same tag