Browse Source

Some research on elasticsearch

master
Julio Biason 4 years ago
parent
commit
0469786eb2
  1. 18
      content/research/_index.md
  2. 33
      content/research/elastic.md

18
content/research/_index.md

@ -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>

33
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 /<index>/_doc/
```
Loading…
Cancel
Save