# Elasticsearch Java Client: Support for custom mappings/settings

**URL:** <https://discuss.elastic.co/t/elasticsearch-java-client-support-for-custom-mappings-settings/303172>\
**Category:** Elasticsearch\
**Tags:** language-clients\
**Created:** [April 25, 2022, 2:52pm UTC](https://discuss.elastic.co/t/elasticsearch-java-client-support-for-custom-mappings-settings/303172 "2022-04-25T14:52:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Fabrizio\_Fortino](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/fabrizio_fortino/32/1719_2.png) [@Fabrizio\_Fortino](https://discuss.elastic.co/u/Fabrizio_Fortino)\
**Post date:** [April 25, 2022, 2:52pm UTC](https://discuss.elastic.co/t/elasticsearch-java-client-support-for-custom-mappings-settings/303172/1 "2022-04-25T14:52:30Z")

</div>

Custom plugins sometimes require custom mappings/settings.  
As an example, elastiknn requires a [specific setting](https://elastiknn.com/api/#index-settings) to enable the plugin for a given index and a [custom field mapping](https://elastiknn.com/api/#general-structure) for the configuration.

With the Rest High-Level Client, this can be done using **XContentFactory**. The new Elasticsearch Java Client is much more elegant and type-safe but it does not seem to support custom settings/mappings.

Is there any plan to support this?

Thanks

---

<div class="post-metadata">

**Author:** ![swallez](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/swallez/32/11972_2.png) [@swallez](https://discuss.elastic.co/u/swallez)\
**Post date:** [April 25, 2022, 4:17pm UTC](https://discuss.elastic.co/t/elasticsearch-java-client-support-for-custom-mappings-settings/303172/2 "2022-04-25T16:17:19Z")

</div>

Yes, definitely. We've done some prototyping on this already which is captured in [[roadmap] Add support for plugin-defined custom components · Issue #252 · elastic/elasticsearch-java · GitHub](https://github.com/elastic/elasticsearch-java/issues/252)

Please subscribe to that issue to follow its progress. Feedback is of course welcome!

---

<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:** [May 23, 2022, 4:18pm UTC](https://discuss.elastic.co/t/elasticsearch-java-client-support-for-custom-mappings-settings/303172/3 "2022-05-23T16:18:14Z")

</div>

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