14

The ImmutableSettings class in the elastic-search project does not exist anymore. I found that the class was deleted.

"org.elasticsearch.common.settings.ImmutableSettings was deleted at 2015-05-26 05:41:12."

Would anyone give feedback on this? I still find many Q&As that include the class in the Stack Overflow.

1 Answer 1

26

In ES 2.0, the ImmutableSettings class was indeed removed. This issue mentions it and the breaking changes documentation for 2.0 also mention it.

Instead you can now use Settings.builder() instead of ImmutableSettings.builder(). The current implementation of the Settings class can be seen here

All the questions that still use ImmutableSettings are questions about pre-2.0 versions of Elasticsearch.

2

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.