【发布时间】:2017-03-30 04:26:58
【问题描述】:
我不确定在批量索引中是否正确使用了upsert 操作。
我的要求是:
{ "update": {"_id": "610946100"}}\n
{"doc": {"id":"610946100","uri":"/0/0/1/6/4/0/610946100.xml"}, "doc_as_upsert" : true}\n
网址是:http://localhost:9200/anIndex/aType/_bulk
我想我错过了documentation 中的某些内容,但我仍然找不到如何进行此操作。
我想要的是在索引中创建上述文档或更新它(如果存在)。
【问题讨论】:
标签: elasticsearch