add es-高级DSL查询

This commit is contained in:
dashan 2023-01-04 23:43:35 +08:00
parent 357cd13c41
commit 8c52dbc46d
59 changed files with 1078 additions and 5 deletions
elk/elasticsearch
ES-高级DSL查询.md
assets
DKV9HZbVS6.gifimage-20210721165326938.pngimage-20210721170455419.pngimage-20210721170720691.pngimage-20210721171655308.pngimage-20210721171838378.pngimage-20210721172307172.pngimage-20210721172645103.pngimage-20210721172654880.pngimage-20210721175443234.pngimage-20210721182031475.pngimage-20210721190152134.pngimage-20210721190416214.pngimage-20210721190907320.pngimage-20210721191144560.pngimage-20210721191544750.pngimage-20210721193152520.pngimage-20210721193458182.pngimage-20210721193822848.pngimage-20210721194744183.pngimage-20210721195728306.pngimage-20210721200214690.pngimage-20210721200643029.pngimage-20210721201003229.pngimage-20210721202705030.pngimage-20210721203349633.pngimage-20210721203657850.pngimage-20210721203950559.pngimage-20210721214221057.pngimage-20210721215640790.pngimage-20210721215729236.pngimage-20210721215843099.pngimage-20210721215923060.pngimage-20210721220305140.pngimage-20210721220927286.pngimage-20210721221121266.pngimage-20210721221744883.pngimage-20210721222057212.pngimage-20210721223159598.pngimage-20210721223859419.pngimage-20210721224033789.pngimage-20210721224112708.pngimage-20210722091940726.pngimage-20210722092051994.pngimage-20210722092935453.pngimage-20210722093414542.pngimage-20210722093642382.pngimage-20210722095227059.pngimage-20210722095648542.pngimage-20210722095902314.pngimage-20210722100040674.pngimage-20210722100613966.pngimage-20210722100838604.pngimage-20210722100947292.pngimage-20210722101908062.pngimage-20210722102850818.pngvZrdKAh19C.gif
基础ES-DSL语句.md

File diff suppressed because it is too large Load Diff

Binary file not shown.

After

(image error) Size: 161 KiB

Binary file not shown.

After

(image error) Size: 61 KiB

Binary file not shown.

After

(image error) Size: 335 KiB

Binary file not shown.

After

(image error) Size: 398 KiB

Binary file not shown.

After

(image error) Size: 314 KiB

Binary file not shown.

After

(image error) Size: 158 KiB

Binary file not shown.

After

(image error) Size: 251 KiB

Binary file not shown.

After

(image error) Size: 96 KiB

Binary file not shown.

After

(image error) Size: 92 KiB

Binary file not shown.

After

(image error) Size: 234 KiB

Binary file not shown.

After

(image error) Size: 242 KiB

Binary file not shown.

After

(image error) Size: 38 KiB

Binary file not shown.

After

(image error) Size: 14 KiB

Binary file not shown.

After

(image error) Size: 128 KiB

Binary file not shown.

After

(image error) Size: 92 KiB

Binary file not shown.

After

(image error) Size: 129 KiB

Binary file not shown.

After

(image error) Size: 237 KiB

Binary file not shown.

After

(image error) Size: 362 KiB

Binary file not shown.

After

(image error) Size: 42 KiB

Binary file not shown.

After

(image error) Size: 459 KiB

Binary file not shown.

After

(image error) Size: 58 KiB

Binary file not shown.

After

(image error) Size: 342 KiB

Binary file not shown.

After

(image error) Size: 21 KiB

Binary file not shown.

After

(image error) Size: 33 KiB

Binary file not shown.

After

(image error) Size: 155 KiB

Binary file not shown.

After

(image error) Size: 352 KiB

Binary file not shown.

After

(image error) Size: 75 KiB

Binary file not shown.

After

(image error) Size: 75 KiB

Binary file not shown.

After

(image error) Size: 140 KiB

Binary file not shown.

After

(image error) Size: 164 KiB

Binary file not shown.

After

(image error) Size: 195 KiB

Binary file not shown.

After

(image error) Size: 17 KiB

Binary file not shown.

After

(image error) Size: 24 KiB

Binary file not shown.

After

(image error) Size: 15 KiB

Binary file not shown.

After

(image error) Size: 86 KiB

Binary file not shown.

After

(image error) Size: 65 KiB

Binary file not shown.

After

(image error) Size: 61 KiB

Binary file not shown.

After

(image error) Size: 159 KiB

Binary file not shown.

After

(image error) Size: 332 KiB

Binary file not shown.

After

(image error) Size: 44 KiB

Binary file not shown.

After

(image error) Size: 47 KiB

Binary file not shown.

After

(image error) Size: 28 KiB

Binary file not shown.

After

(image error) Size: 43 KiB

Binary file not shown.

After

(image error) Size: 46 KiB

Binary file not shown.

After

(image error) Size: 232 KiB

Binary file not shown.

After

(image error) Size: 53 KiB

Binary file not shown.

After

(image error) Size: 21 KiB

Binary file not shown.

After

(image error) Size: 78 KiB

Binary file not shown.

After

(image error) Size: 164 KiB

Binary file not shown.

After

(image error) Size: 184 KiB

Binary file not shown.

After

(image error) Size: 473 KiB

Binary file not shown.

After

(image error) Size: 189 KiB

Binary file not shown.

After

(image error) Size: 417 KiB

Binary file not shown.

After

(image error) Size: 139 KiB

Binary file not shown.

After

(image error) Size: 111 KiB

Binary file not shown.

After

(image error) Size: 136 KiB

Binary file not shown.

After

(image error) Size: 427 KiB

View File

@ -1,6 +1,8 @@
# 基础索引库、文档ES-DSL语句 # 基础索引库、文档ES-DSL语句
## 基础概念 [TOC]
# 基础概念
我们把mysql与elasticsearch的概念做一下对比 我们把mysql与elasticsearch的概念做一下对比
@ -26,9 +28,9 @@
- 对查询性能要求较高的搜索需求使用elasticsearch实现 - 对查询性能要求较高的搜索需求使用elasticsearch实现
- 两者再基于某种方式,实现数据的同步,保证一致性 - 两者再基于某种方式,实现数据的同步,保证一致性
## 基础语法 # 基础语法
### 索引基础语法 ## 索引基础语法
- 创建索引库PUT /索引库名 - 创建索引库PUT /索引库名
- 查询索引库GET /索引库名 - 查询索引库GET /索引库名
@ -37,7 +39,7 @@
- PUT /索引库名/_mapping - PUT /索引库名/_mapping
- POST /索引库名/_mapping - POST /索引库名/_mapping
### 文档基础语法 ## 文档基础语法
- 创建文档POST /{索引库名}/_doc/文档id { json文档 } - 创建文档POST /{索引库名}/_doc/文档id { json文档 }
- 查询文档GET /{索引库名}/_doc/文档id - 查询文档GET /{索引库名}/_doc/文档id
@ -46,7 +48,7 @@
- 全量修改 (如果索引库中不存在则新增)PUT /{索引库名}/_doc/文档id { json文档 } - 全量修改 (如果索引库中不存在则新增)PUT /{索引库名}/_doc/文档id { json文档 }
- 局部修改(如果索引库中不存在则修改失败)POST /{索引库名}/_update/文档id { "doc": {字段}} - 局部修改(如果索引库中不存在则修改失败)POST /{索引库名}/_update/文档id { "doc": {字段}}
## 示例 # 示例
```apl ```apl
#分词器 #分词器