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


Or if you want to load from an input stream:


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

Related Query

More Query from same tag