August 2019
Intermediate to advanced
560 pages
13h 41m
English
You can index a document with an _id or without it. Elasticsearch will automatically generate one for you if the _id field is not filled:
PUT /{index}/_doc/{_id}
Let's specify _id as 1 to create an ACWF ETF document in the cf_etf index, as shown in the following screenshot:
In the response body, the aforementioned metadata is index name (_index: cf_etf), mapping type (_type: _doc), and the document identifier (_id: 1). Besides, there is a bit more metadata, such as the version number (_version), the sequence ...
Read now
Unlock full access