# Java API getAsMap in Settings disappeared

**URL:** <https://discuss.elastic.co/t/java-api-getasmap-in-settings-disappeared/132775>\
**Category:** Elasticsearch\
**Created:** [May 22, 2018, 10:02am UTC](https://discuss.elastic.co/t/java-api-getasmap-in-settings-disappeared/132775 "2018-05-22T10:02:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![piddie](https://avatars.discourse-cdn.com/v4/letter/p/4491bb/32.png) [@piddie](https://discuss.elastic.co/u/piddie)\
**Post date:** [May 22, 2018, 10:02am UTC](https://discuss.elastic.co/t/java-api-getasmap-in-settings-disappeared/132775/1 "2018-05-22T10:02:09Z")

</div>

Hi  
I am currently upgrading our Java API Elasticsearch and stumbled across a method that has been removed between version 6.0.x and 6.1.x - without it being mentioned in the breaking changes.

This is with respect to the class  
org.elasticsearch.common.settings.Settings

In 6.0.x (and lower versions) there was a method called  
getAsMap() - which returned a flat hash map of the settings

In 6.1.x and higher this method is no longer available.

Any reason why?  
Are there alternative ways to handle this?

(Jest Client takes a hash map when creating an index)

Thanks  
Peter

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [June 19, 2018, 10:02am UTC](https://discuss.elastic.co/t/java-api-getasmap-in-settings-disappeared/132775/2 "2018-06-19T10:02:11Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
