在Elastic-search中是否删除了ImmutableSettings? [英] Is ImmutableSettings removed in Elastic-search?
问题描述
弹性搜索项目中的ImmutableSettings类不再存在。我发现该类已删除。
The ImmutableSettings class in the elastic-search project does not exist anymore. I found that the class was deleted.
org.elasticsearch.common.settings.ImmutableSettings在2015-05-26 05:41:12删除。
"org.elasticsearch.common.settings.ImmutableSettings was deleted at 2015-05-26 05:41:12."
有人会对此提供反馈吗?我仍然可以找到许多Q& As,其中包括该类在堆栈溢出中。
Would anyone give feedback on this? I still find many Q&As that include the class in the Stack Overflow.
在Spring WebApp中使用Elasticsearch客户端时的链接错误
属性文件中的Elasticsearch scala elastic4s设置
推荐答案
在ES 2.0中, ImmutableSettings
类确实已删除ed。 此问题提到了该问题,并打破2.0版的更改文档也要提及。
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.
相反,您现在可以使用 Settings.builder()
代替 ImmutableSettings.builder()
。可以在
Instead you can now use Settings.builder()
instead of ImmutableSettings.builder()
. The current implementation of the Settings
class can be seen here
所有仍在使用的问题 ImmutableSettings
是有关Elasticsearch的 2.0之前版本的问题。
All the questions that still use ImmutableSettings
are questions about pre-2.0 versions of Elasticsearch.
这篇关于在Elastic-search中是否删除了ImmutableSettings?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!