I am using the _bulk api for indexing my data. I have a parent field for every document except the first document.
Normally my documents will have the following meta-data:
{"index":{"_id":"11111", "parent": "00000"}}
What should I specify in the parent field for the first document.
Should I leave the parent field blank?
{"index":{"_id":"00000", "parent": ""}}
Or should I not include the parent field at all?
{"index":{"_id":"00000"}}
您只是根本没有在第一个文档中包含parent
属性,该属性应作为所有其他文档的父文档。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.