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

File diff suppressed because it is too large Load Diff

Binary file not shown.

After

Width:  |  Height:  |  Size: 161 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 61 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 335 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 398 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 314 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 158 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 251 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 96 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 92 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 234 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 242 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 128 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 92 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 129 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 237 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 362 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 459 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 58 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 342 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 33 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 155 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 352 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 75 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 75 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 140 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 164 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 195 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 86 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 65 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 61 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 159 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 332 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 47 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 46 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 232 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 53 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 78 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 164 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 184 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 473 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 189 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 417 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 139 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 111 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 136 KiB

Binary file not shown.

After

Width:  |  Height:  |  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
#分词器 #分词器