Elastic Search

ES 与关系型数据库 MySQL 的数据参考关系

MySQL ES
database index
table type
row document
column field
schema mapping
index default
sql Query DSL E-SQL

ES 安装启动

docker network ls | grep elastic || docker network create elastic

version=8.3.3
docker run -d \
  --name elasticsearch \
  --network elastic \
  -p 9200:9200 -p 9300:9300 \
  -e "discovery.type=single-node" \
  docker.elastic.co/elasticsearch/elasticsearch:$version

Quick Start

快速体验

http api

curl -XPUT "localhost:9200/customer/_doc/1?pretty" \
  -H 'Content-Type: application/json' \
  -d'
{
  "name": "John Doe"
}
'
curl -XGET "localhost:9200/customer/_doc/1?pretty"
curl -XPOST "localhost:9200/bank/_bulk?pretty&refresh" \
 

你可能感兴趣的:(jenkins,运维,es)