elastic / elastic/elasticsearch-java
java.lang.IllegalArgumentException: Class class co.elastic.clients.elasticsearch.core.bulk.UpdateOperation cannot be read from JSON
- Dominant language
- Java
- Stars
- 524
- Forks
- 300
- Avg merge
- 1d 11h
- Merged PRs (30d)
- 16
Description
### Java API client version
8.5.3 and 8.4.1
### Java version
jdk11
### Elasticsearch Version
8.4.1
### Problem description
java.lang.IllegalArgumentException: Class class co.elastic.clients.elasticsearch.core.bulk.UpdateOperation cannot be read from JSON
```
StringReader reader = new StringReader(json);
BulkOperation updateOp = new BulkOperation.Builder()
.update(new UpdateOperation.Builder<>()
.index(topic)
.id("1")
.withJson(reader)
.retryOnConflict(Math.min(1, 5))
.build())
.build();
```


Contributor guide
Assessment
This issue has not been assessed yet.