May 2017
Beginner to intermediate
596 pages
15h 2m
English
Now that we have the index created, we can indexed a document into the index. The only requirement for a document to be indexed is that it should be a JSON document as Elasticsearch is schema-less and derives the storage schema based on the document structure indexed.
As shown in the following figure, the command to index a document is PUT {index-name}/{type}/{id}:
PUT datalake/contacts/101{ "id":101, "cell":"(478) 531-2026", "work":”1-906-774-1226", "email":"vincenzo.hickle@yahoo.com"}
Figure 24: Document Creation QueryAs the document is indexed, Elasticsearch internally creates document mapping based on the data in ...