February 2019
Intermediate to advanced
442 pages
11h 46m
English
The very next thing in the sequence after creating an index is the creation of the document type. We will create a document type named student within the students index. Again, it can be done with REST client or with Kibana. We will see both options in detail.
With REST client (Postman), enter the following:
{ "properties":{ "id":{"type":"long"}, "name":{"type":"text"}, "standard":{"type":"integer"}, "division":{"type":"text"}, "gender":{"type":"text"} } }
With Kibana, go to Dev Tools option and add the following script:
PUT students/_mapping/student{ "properties": { "id":{"type":"long"}, "name":{"type":"text"}, ...