上QQ阅读APP看书,第一时间看更新
Conventions
In this book, you will find a number of styles of text that distinguish between different kinds of information. Here are some examples of these styles, and an explanation of their meaning.
Code words in text are shown as follows: "The indices
object contains information about library
and map
indices. The primaries
object contains information about all primary shards allocated on the current node."
A block of code is set as follows:
"store" : { "size" : "7.6kb", "size_in_bytes" : 7867, "throttle_time" : "0s", "throttle_time_in_millis" : 0 }
When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:
public class HashCodeSortScript extends AbstractSearchScript {
private String field = "name";
public HashCodeSortScript(Map<String, Object> params)
Any command-line input or output is written as follows:
curl -XPOST 'localhost:9200/_cluster/reroute' -d '{ "commands" : [ {"move" : {"index" : "shop", "shard" : 1, "from_node" : "es_node_one", "to_node" : "es_node_two"}}, {"cancel" : {"index" : "shop", "shard" : 0, "node" : "es_node_one"}}
New terms and important words are shown in bold.