在Elastic-search中是否删除了ImmutableSettings? [英] Is ImmutableSettings removed in Elastic-search?

查看:223
本文介绍了在Elastic-search中是否删除了ImmutableSettings?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

弹性搜索项目中的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.

从Java向类型添加映射-我该怎么做?

在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()。可以在Settings 类的当前实现。 java / org / elasticsearch / common / settings / Settings.java rel = noreferrer>此处

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆