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" \
 

相关推荐

  1. ElasticSearch

    2024-02-03 20:46:01       59 阅读
  2. Elasticsearch

    2024-02-03 20:46:01       49 阅读
  3. ElasticSearch

    2024-02-03 20:46:01       47 阅读

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2024-02-03 20:46:01       98 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2024-02-03 20:46:01       106 阅读
  3. 在Django里面运行非项目文件

    2024-02-03 20:46:01       87 阅读
  4. Python语言-面向对象

    2024-02-03 20:46:01       96 阅读

热门阅读

  1. 开源软件的影响力

    2024-02-03 20:46:01       49 阅读
  2. 【MySQL】MySQL 查询两个日期内的每一天

    2024-02-03 20:46:01       49 阅读
  3. 在nodejs中使用mysql2

    2024-02-03 20:46:01       48 阅读
  4. themeleaf:入门(一)

    2024-02-03 20:46:01       44 阅读
  5. kotlin 多字段去重

    2024-02-03 20:46:01       42 阅读
  6. 【React】React预览docx文件

    2024-02-03 20:46:01       50 阅读
  7. UDP和TCP的区别和联系

    2024-02-03 20:46:01       45 阅读
  8. 【CSS】动画(Transform,Transition,Animation)

    2024-02-03 20:46:01       50 阅读