After looking through the documentation, I am still unsure - If an upsert can be performed against elasticsearch with the Jest java client library?
Asked
Active
Viewed 1,584 times
1 Answers
2
I was able to do so by using the jsonBuilder:
new Update.Builder(XContentFactory.jsonBuilder().startObject().field("doc_as_upsert", true).startObject("doc").field("foo", "bar").string());

aviemzur
- 171
- 2
- 5