June 2017
Beginner to intermediate
404 pages
8h 22m
English
To define or add a mapping, we have to use the Mapping API. Mapping for a type, like anything else, is represented in JSON.
Mapping APIs will let you do the following:
First, let's create an index named chapter3 and define the mapping for the user type. The mapping for theuser type is defined as a JSON document as shown next.
#Delete existing index if anyDELETE chapter3PUT chapter3 { "mappings": { "user": { "properties": { "age": { "type": "integer" }, "email": { "type": "keyword" }, "gender": { "type": "keyword" }, "id": { "type": "integer" }, "last_modified_date": ...Read now
Unlock full access