Error deserializing co.elastic.clients.elasticsearch._types.analysis.Analyzer: Property 'type' not found
See original GitHub issueJava API client version
8.4.0
Java version
JDK-17
Elasticsearch Version
7.17.2
Problem description
Trying to read settings for an index, throwing Error deserializing co.elastic.clients.elasticsearch._types.analysis.Analyzer: Property 'type' not found
Exception
var indexSetting = new GetIndicesSettingsRequest.Builder().index("index_1000").build();
try {
var settings = elasticSearchClientConfig.getElasticsearchIndicesClient().getSettings(indexSetting);
System.out.println(settings);
} catch(Exception e) {
e.printStackTrace();
}
Settings
{
"index_1000": {
"settings": {
"index": {
"analysis": {
"analyzer": {
"edgengram-analyzer": {
"tokenizer": "edge_ngram_tokenizer"
}
}
}
}
}
}
}
Exception trace
Error deserializing co.elastic.clients.elasticsearch._types.analysis.Analyzer: Property 'type' not found (JSON path: index_1000.settings.index.analysis.analyzer['edgengram-analyzer']) (line no=1, column no=56407, offset=-1)
Issue Analytics
- State:
- Created a year ago
- Reactions:1
- Comments:7
Top Results From Across the Web
Failure with sorts and new co.elastic.clients:elasticsearch-java ...
I am upgrading from Java High-level REST client 7.15 to the new Java client. I am almost done, it seems only one issue...
Read more >New elasticsearch-java API `CreateIndexRequest` using ...
Seems that the new client requires explicit values for the path hierarchy tokenizer even if they are default. (see default values here )....
Read more >Normalizer ” + normalizerName + ” not found for field ” + name ...
A detailed guide on how to resolve errors related to "normalizer " + normalizerName + " not found for field " + name...
Read more >Spring Data Elasticsearch - Reference Documentation
Implements most of the mapping-types available for the index mappings. ... the client. This is not an error in Spring Data Elasticsearch.
Read more >Hibernate Search 6.1.7.Final: Reference Documentation
The problem, which is not limited to just Hibernate Search, ... the Elasticsearch REST client or retrieve Lucene analyzers.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
FYI I’m able to workaround this via the following (kotlin):
EDIT: simpler
Work around Java version, thanks a ton @rockwotj