The source content for blog.juliobiason.me
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
660 B

+++
title = "ElasticSearch"
weight = 101
[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/
```