# Java Client - Derived Type Mappings

**URL:** <https://forum.opensearch.org/t/java-client-derived-type-mappings/27267>\
**Category:** OpenSearch Client Libraries\
**Tags:** opensearch-java\
**Created:** [October 10, 2025, 6:06pm UTC](https://forum.opensearch.org/t/java-client-derived-type-mappings/27267 "2025-10-10T18:06:13Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![chriswhite](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.opensearch.org/chriswhite/32/4522_2.png) [@chriswhite](https://forum.opensearch.org/u/chriswhite)\
**Post date:** [October 10, 2025, 6:06pm UTC](https://forum.opensearch.org/t/java-client-derived-type-mappings/27267/1 "2025-10-10T18:06:13Z")

</div>

**Versions** (relevant - OpenSearch/Dashboard/Server OS/Browser): 3.1.0

**Describe the issue** :

OpenSearch has supported Derived fields since 2.15 ( [Derived - OpenSearch Documentation](https://docs.opensearch.org/latest/field-types/supported-field-types/derived/) ), but it appears the java client org.opensearch.client.opensearch.\_types.mapping.TypeMapping or org.opensearch.client.opensearch.core.SearchRequest class hasn’t been updated to include this field.

As such, I can’t see to use the Java client to create index templates or submit searches using derived fields. Am I missing something, or is this just not implemented?

I can use the REST API to add this to templates and during search requests, so it is supported (albeit not well documented for template creation).

---

<div class="post-metadata">

**Author:** ![scaph01](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.opensearch.org/scaph01/32/8852_2.png) [@scaph01](https://forum.opensearch.org/u/scaph01)\
**Post date:** [November 21, 2025, 2:16pm UTC](https://forum.opensearch.org/t/java-client-derived-type-mappings/27267/2 "2025-11-21T14:16:59Z")

</div>

I see there was no feedback here, we are seeing the same and adding this comment to allow the query from the original posted get another 2 months for commentary from the opensearch experts

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex019/uploads/mauve_hedgehog/original/2X/3/33547ea01a5b12dcca2958411d3edd97ae2ea8c1.png) [@system](https://forum.opensearch.org/u/system)\
**Post date:** [November 22, 2025, 2:48am UTC](https://forum.opensearch.org/t/java-client-derived-type-mappings/27267/3 "2025-11-22T02:48:25Z")

</div>



---

<div class="post-metadata">

**Author:** ![chriswhite](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.opensearch.org/chriswhite/32/4522_2.png) [@chriswhite](https://forum.opensearch.org/u/chriswhite)\
**Post date:** [November 22, 2025, 2:49am UTC](https://forum.opensearch.org/t/java-client-derived-type-mappings/27267/4 "2025-11-22T02:49:06Z")

</div>

I submitted this pr to get the openapi spec updated, and have another pr ready to update the java client too, but they are going unnoticed by the maintainers

opensearch-project/opensearch-api-specification/pull/976

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex019/uploads/mauve_hedgehog/original/2X/3/33547ea01a5b12dcca2958411d3edd97ae2ea8c1.png) [@system](https://forum.opensearch.org/u/system)\
**Post date:** [November 26, 2025, 5:42pm UTC](https://forum.opensearch.org/t/java-client-derived-type-mappings/27267/5 "2025-11-26T17:42:59Z")

</div>



---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex019/uploads/mauve_hedgehog/original/2X/3/33547ea01a5b12dcca2958411d3edd97ae2ea8c1.png) [@system](https://forum.opensearch.org/u/system)\
**Post date:** [January 25, 2026, 5:43pm UTC](https://forum.opensearch.org/t/java-client-derived-type-mappings/27267/6 "2026-01-25T17:43:04Z")

</div>

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