Conventions
In this book, you will find a number of text styles that distinguish between different kinds of information. Here are some examples of these styles and an explanation of their meaning.
Code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles are shown as follows: "If you use the Linux or OS X command, the cURL
package should already be available."
A block of code is set as follows:
{ "mappings": { "post": { "properties": { "id": { "type":"long" }, "name": { "type":"string" }, "published": { "type":"date" }, "contents": { "type":"string" } } } } }
When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:
{
"mappings": {
"post": {
"properties": {
"id": { "type":"long" },
"name": { "type":"string" },
"published": { "type":"date" },
"contents": { "type":"string" }
}
}
}
}
Any command-line input or output is written as follows:
curl -XPUT http://localhost:9200/users/?pretty -d '{ "mappings" : { "user": { "numeric_detection" : true } } }'
Note
Warnings or important notes appear in a box like this.