February 2019
Intermediate to advanced
442 pages
11h 46m
English
After getting the basics of how the index and document type are created, along with inserting document data in Elasticsearch, we will create these artifacts for a Blogpress application. In this application, we need to store the data for blogs and comments. The blog and comments have a one- to-many relationship (one blog has multiple comments), we will create an index structure in such a way that multiple comments will be associated with a single blog.
Elasticsearch provides nested data types to index arrays of objects and maintains them as an independent document. We will maintain an array of comments for a single blog. We will give the index name of blog and set the document type, to blog