- Notifications
You must be signed in to change notification settings - Fork 276
Closed
Labels
Area: SpecificationRelated to the API spec used to generate client codeRelated to the API spec used to generate client code
Description
Java API client version
8.6.2
Java version
17
Elasticsearch Version
8.6.2
Problem description
While trying to create a new index using the Elastic Java Client API, I stumble across the following exception:
Error deserializing co.elastic.clients.elasticsearch._types.analysis.HtmlStripCharFilter: Unknown field 'escaped_tags' (JSON path: settings.index.analysis.char_filter.html_body_filter.escaped_tags)
Code:
public void createIndex(String index, String settingsJson) throws IOException { LOG.info("Creating index {}", index); CreateIndexRequest request = new CreateIndexRequest.Builder() .index(index) .withJson(new StringReader(settingsJson)) .build(); elasticsearchClient.indices().create(request); }
where the settings json contains the following:
... "char_filter": { "html_body_filter": { "type": "html_strip", "escaped_tags": [ "body" ] } } ...
According to the documentation, this is a valid configurable parameter.
Metadata
Metadata
Assignees
Labels
Area: SpecificationRelated to the API spec used to generate client codeRelated to the API spec used to generate client code