Java API client version
8.17.0
Java version
17
Elasticsearch Version
8.13.2
Problem description
Given an index with properties
"search_as_you_type": {
"type": "search_as_you_type",
"analyzer": "default",
"doc_values": false
}
I am able to post it to the server from Kibana:

But the client fails to post it:
[ERROR] JsonpMapping Error deserializing co.elastic.clients.elasticsearch._types.mapping.SearchAsYouTypeProperty: Unknown field 'doc_values' (JSON path: mappings.properties.search_as_you_type.doc_values) (in object at line no=52, column no=30, offset=1208)