8. ElasticSearchNodes 1.1.ElasticSearch Case 1) All round player node.master: true node.data: true node.master: true node.data: true node.master: true node.data: true Case 2) Master Data node.master: true node.data: false node.master: true node.data: false node.master: false node.data: true node.master: false node.data: true Case 3) Master Data Search LB node.master: true node.data: false node.master: true node.data: false node.master: false node.data: true node.master: false node.data: true node.master: false node.data: false node.master: false node.data: false
9. ElasticSearchvs RDBMS 1.1.ElasticSearch Relational Database ElasticSearch Database Index Table Type Row Document Column Field Index Analyze Primary key _id Schema Mapping Physical partition Shard Logical partition Route Relational Parent/Child, Nested SQL Query DSL
10. ElasticSearchshard replication 1.1.ElasticSearch POST /my_index/_settings{ "number_of_replicas":1} POST /my_index/_settings{ "number_of_replicas":2} http://www.elasticsearch.org/guide/en/elasticsearch/guide/current/replica-shards
11. Creating, indexing and deleting a document 1.1.ElasticSearch http://www.elasticsearch.org/guide/en/elasticsearch/guide/current/distrib-write.html
12. Retrieve, query and fetch a document 1.1.ElasticSearch http://www.elasticsearch.org/guide/en/elasticsearch/guide/current/distrib-read.html http://www.elasticsearch.org/guide/en/elasticsearch/guide/current/_query_phase.html http://www.elasticsearch.org/guide/en/elasticsearch/guide/current/_fetch_phase.html
13. 1.2. Create index Add document Get document Search document
14. Indice/type design Time-based/User-based data Relational data 1TB 1.3.Modeling Field design Primary key
15. Modeling 1.3.Modeling Indice1 Indice2 Indice3 IndiceA IndiceB IndiceC Type Parent Type Child Type Parent Type Child Type Child Type 1 : N 1 : N 1 : N