Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is ImmutableSettings removed in Elastic-search?

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.

  • How to write a test for Elasticsearch custom plugin?

  • Adding mapping to a type from Java - how do I do it?

  • Linkage error when using Elasticsearch client in Spring WebApp

  • Elasticsearch scala elastic4s settings from property file

like image 918
salee Avatar asked Oct 14 '15 02:10

salee


1 Answers

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.

like image 78
Val Avatar answered Oct 21 '22 19:10

Val