# ES8 Java Client API : Index API - Get index features flag seems missing

**URL:** <https://discuss.elastic.co/t/es8-java-client-api-index-api-get-index-features-flag-seems-missing/304081>\
**Category:** Elasticsearch\
**Tags:** language-clients\
**Created:** [May 6, 2022, 3:44am UTC](https://discuss.elastic.co/t/es8-java-client-api-index-api-get-index-features-flag-seems-missing/304081 "2022-05-06T03:44:38Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Felton\_Fee](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/felton_fee/32/79258_2.png) [@Felton\_Fee](https://discuss.elastic.co/u/Felton_Fee)\
**Post date:** [May 6, 2022, 3:44am UTC](https://discuss.elastic.co/t/es8-java-client-api-index-api-get-index-features-flag-seems-missing/304081/1 "2022-05-06T03:44:38Z")

</div>

With ES8 java client to get index  
client.indices().get(c -\> c.index(name).features(...))

I didn't find the method corresponding to the following param:

**`features`**  
(Optional, string) Return information about specific index features. Supports comma- separated values. Valid values are `aliases` , `mappings` , and `settings` . Defaults to `aliases,mappings,settings` .

Ref: [Get index API | Elasticsearch Guide [8.2] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-get-index.html)

Maybe I miss sth? Please advice.

Thank you !

---

<div class="post-metadata">

**Author:** ![RabBit\_BR](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rabbit_br/32/82261_2.png) [@RabBit\_BR](https://discuss.elastic.co/u/RabBit_BR)\
**Post date:** [May 6, 2022, 12:10pm UTC](https://discuss.elastic.co/t/es8-java-client-api-index-api-get-index-features-flag-seems-missing/304081/2 "2022-05-06T12:10:02Z")

</div>

Hi!!  
I work this way:

```auto
    GetIndexResponse indices = client.indices().get(i -> i.index("idx_example"));
    IndexState indexState = indices.get("idx_example");
    IndexSettings settings = indexState.settings();
    TypeMapping mappings = indexState.mappings();
    Map<String, Alias> aliases = indexState.aliases();

```

---

<div class="post-metadata">

**Author:** ![Felton\_Fee](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/felton_fee/32/79258_2.png) [@Felton\_Fee](https://discuss.elastic.co/u/Felton_Fee)\
**Post date:** [May 7, 2022, 2:23pm UTC](https://discuss.elastic.co/t/es8-java-client-api-index-api-get-index-features-flag-seems-missing/304081/3 "2022-05-07T14:23:28Z")

</div>

Thank you! That works.  
Hope the API can provide sth corresponding to the REST. That will make the code cleaner.

---

<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 4, 2022, 2:23pm UTC](https://discuss.elastic.co/t/es8-java-client-api-index-api-get-index-features-flag-seems-missing/304081/4 "2022-06-04T14:23:45Z")

</div>

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