-
Notifications
You must be signed in to change notification settings - Fork 260
Error deserializing co.elastic.clients.elasticsearch._types.analysis.Analyzer: Property 'type' not found #392
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@swallez Please help fixing this. |
We've seen this as well in testing. |
This also happens for me with library versions 7.17.6 and 8.4.1 with the Get Index API, à la client.indices().get(builder -> builder.index("*")) It's a show-stopper for migrating to the Java Client, away from the |
We're hitting this too in trying to migrate |
FYI I'm able to workaround this via the following (kotlin): val unwrapped = DelegatingDeserializer.unwrap(Analyzer._DESERIALIZER) as ObjectDeserializer<*>
unwrapped.setTypeProperty("type", "custom") EDIT: simpler |
Don't know how to port this to Java, still looking... |
Work around Java version, thanks a ton @rockwotj
|
or just add {
"index_1000": {
"settings": {
"index": {
"analysis": {
"analyzer": {
"edgengram-analyzer": {
"type": "custom",
"tokenizer": "edge_ngram_tokenizer"
}
}
}
}
}
}
} |
Java 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
ExceptionSettings
Exception trace
The text was updated successfully, but these errors were encountered: