Mapping a document
The document, also referred to as root object, has special parameters to control its behavior used to mainly internally perform special processing.
In this recipe we'll see special fields and how to use them.
Getting ready
You need a working ElasticSearch cluster.
How to do it...
We can extend the preceding order example, adding some of the special fields. For example:
{ "order": { "_uid": { "store": "yes" }, "_id": { "path": "order_id" }, "_type": { "store": "yes" }, "_source": { "store": "yes" }, "_all": { "enable": false }, "_analyzer": { "path": "analyzer_field" }, "_boost": { "null_value": 1.0 }, "_routing": { "path": "customer_id", "required": true }, "_index": { "enabled": true }, "_size": { "enabled": true, "store": "yes" }, "_timestamp": { "enabled": true, "store": "yes", "path": "date" }...