From 0469786eb2013352d62efaea44c2aef5b448cb12 Mon Sep 17 00:00:00 2001 From: Julio Biason Date: Tue, 23 Jun 2020 17:43:52 -0300 Subject: [PATCH] Some research on elasticsearch --- content/research/_index.md | 18 ++++++++++++++++++ content/research/elastic.md | 33 +++++++++++++++++++++++++++++++++ 2 files changed, 51 insertions(+) create mode 100644 content/research/_index.md create mode 100644 content/research/elastic.md diff --git a/content/research/_index.md b/content/research/_index.md new file mode 100644 index 0000000..af00312 --- /dev/null +++ b/content/research/_index.md @@ -0,0 +1,18 @@ ++++ +title = "Research Notes" +transparent = true ++++ + +
+

{{ section.title }}

+ + +
diff --git a/content/research/elastic.md b/content/research/elastic.md new file mode 100644 index 0000000..d3a1873 --- /dev/null +++ b/content/research/elastic.md @@ -0,0 +1,33 @@ ++++ +title = "ElasticSearch" + +[taxonomies] +tags = ["research", "elastic", "elasticsearch", "docker"] ++++ + +## Docker image + +``` +docker pull docker.elastic.co/elasticsearch/elasticsearch:7.8.0 +``` + +## Start + +``` +docker run -p 9200:9200 -p 9300:9300 -e "discovery.type=single-node" docker.elastic.co/elasticsearch/elasticsearch:7.8.0 +``` + +- Port 9200: REST interface. +- Port 9300: Inter-node communication. +- `discovery.type`: Just one node, no discovery needed. + +## Definitions + +- MySQL => Databases => Tables => Columns/Rows +- Elasticsearch => Indices => Types => Documents with Properties + +## Adding information (REST) + +``` +POST //_doc/ +```