Julio Biason
4 years ago
2 changed files with 51 additions and 0 deletions
@ -0,0 +1,18 @@
|
||||
+++ |
||||
title = "Research Notes" |
||||
transparent = true |
||||
+++ |
||||
|
||||
<div class="post"> |
||||
<h1 class="post-title">{{ section.title }}</h1> |
||||
|
||||
<ul> |
||||
{% for term in section.pages %} |
||||
<li class="tag-list"> |
||||
<a href="{{ term.permalink | safe }}"> |
||||
{{ term.title }} |
||||
</a> |
||||
</li> |
||||
{% endfor %} |
||||
</ul> |
||||
</div> |
@ -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 /<index>/_doc/ |
||||
``` |
Loading…
Reference in new issue