# Derived Source error with semantic field type

**URL:** <https://forum.opensearch.org/t/derived-source-error-with-semantic-field-type/27404>\
**Category:** Machine Learning\
**Created:** [October 31, 2025, 3:27pm UTC](https://forum.opensearch.org/t/derived-source-error-with-semantic-field-type/27404 "2025-10-31T15:27:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![asfoorial](https://avatars.discourse-cdn.com/v4/letter/a/3da27b/32.png) [@asfoorial](https://forum.opensearch.org/u/asfoorial)\
**Post date:** [October 31, 2025, 3:27pm UTC](https://forum.opensearch.org/t/derived-source-error-with-semantic-field-type/27404/1 "2025-10-31T15:27:18Z")

</div>

OS 3.3.1

Hi all, I am getting the below error when created an index with derived\_source enabled and having a semantic field type. Your help is highly appreciated.

## HTTP Request:

PUT test\_semantic2  
{  
“settings”: {  
“index”: {  
“knn”: true,  
“derived\_source.enabled”: true  
}  
},  
“mappings”: {  
“properties”: {  
“passage”: {  
“type”: “semantic”,  
“model\_id”: “SobLOpoBBxUKhJh31EiZ”  
}  
}  
}  
}

## HTTP Response:

{  
“error”: {  
“root\_cause”: [  
{  
“type”: “mapper\_parsing\_exception”,  
“reason”: “Failed to parse mapping [\_doc]: Derive source is not supported for field [passage] with field type [semantic]”  
}  
],  
“type”: “mapper\_parsing\_exception”,  
“reason”: “Failed to parse mapping [\_doc]: Derive source is not supported for field [passage] with field type [semantic]”,  
“caused\_by”: {  
“type”: “unsupported\_operation\_exception”,  
“reason”: “Derive source is not supported for field [passage] with field type [semantic]”  
}  
},  
“status”: 400  
}

---

<div class="post-metadata">

**Author:** ![Anthony](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.opensearch.org/anthony/32/9939_2.png) [@Anthony](https://forum.opensearch.org/u/Anthony)\
**Post date:** [November 3, 2025, 1:21pm UTC](https://forum.opensearch.org/t/derived-source-error-with-semantic-field-type/27404/2 "2025-11-03T13:21:12Z")

</div>

@asfoorial I believe the semantic field is a high-level/convenience mapper and not a physical vector field. As far as I know derived source is currently implemented only for vector fields such as `knn_vector`. The semantic mapper doesn’t expose a concrete `knn_vector` subfield for derived-source to target.

Therefore to make this work in your case you would need to either remove the derived source, or if you need derived source for space savings use `knn_vector` field instead of `semantic`

---

<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 2, 2026, 1:22pm UTC](https://forum.opensearch.org/t/derived-source-error-with-semantic-field-type/27404/3 "2026-01-02T13:22:06Z")

</div>

Closed on January 2, 2026, 1:22pm UTC

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