Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
查看文档后,我仍然不确定 - 如果可以使用 Jest java 客户端库对 elasticsearch 执行 upsert?
我可以通过使用 jsonBuilder 来做到这一点:
new Update.Builder(XContentFactory.jsonBuilder().startObject().field("doc_as_upsert", true).startObject("doc").field("foo", "bar").string());