ElasticSearch(ES)基础教程(七日成蝶)

学习ElasticSearch的部署方法及应用,达到后端开发的技术要求

1893人学习

初级28课时2020/04/05更新

二维码下载学堂APP缓存视频离线看

袁春旭
    • 畅销套餐
    • 精选套餐
    • 人气套餐
    • 尊享套餐
    • 高薪套餐
  • 课程介绍
  • 课程大纲

适合人群:

大学生 中学生 初学者 转业士兵 有IT领域从业意愿的人群

你将会学到:

学习ElasticSearch的部署方法及应用,达到后端开发的技术要求

课程简介:

ElasticSearch是一款数据分析数据库+数据搜索引擎。

课程以ElasticSearch7.x版本为例进行讲解,课程讲述了以下内容:

  1. 在Linux系统下ElasticSearch的本地部署方法。

  2. 在Linux系统下ElasticSearch对外服务的配置,常见问题及解决方法。

  3. 如何在ElasticSearch建立索引,插入数据。

  4. 如何在ElasticSearch更新和删除数据。

  5. 如何在ElasticSearch简单搜索数据。

  6. 如何在ElasticSearch完成复杂搜索及选取字段。

展开更多

课程大纲-ElasticSearch(ES)基础教程(七日成蝶)

  • 1

    七日成蝶课程体系介绍(2020)

    「仅限付费用户」点击下载“七日成蝶课程快捷链接2020.txt”

    [20:53]
  • 2

    ElasticSearch下载及部署https://www.elastic.co/cn/downloads/elasticsearch

    「仅限付费用户」点击下载“软件.rar”

    [10:36]
  • 5

    开启Kibana-Console查看全部索引kibana:/_cat/indices?v

    [04:43]
  • 7

    创建索引创建一个索引curl -X PUT "localhost:9200/student?pretty"kibana:PUT /student?prettyPUT /student

    [04:27]
  • 11

    更新文档-整体更新更新完整文档curl -X PUT "localhost:9200/student/class1/1?pretty" -H 'Content-Type: application/json' -d'{ "name": "zhangsan", "age": "22"}'kibanaPUT /student/class1/1{ "name": "zhangsan", "age": "22"}

    [05:36]
  • 12

    更新文档-部分更新更新文档-部分更新curl -X POST "localhost:9200/student/class1/1/_update?pretty" -H 'Content-Type: application/json' -d'{ "doc" : { "name" : "yuanchunxu", "score": 100 }}'kibanaPOST /student/class1/1/_update{ "doc" : { "name" : "yuanchunxu", "score": 100 }}

    [05:19]
  • 13

    查询文档查询一个文档请求:curl -X GET "localhost:9200/student/class1/1?pretty"kibana:GET /student/class1/1?pretty查询索引下全部文档curl -X GET "localhost:9200/student/class1/_search?pretty"kibana:GET /student/_searchGET /student/class1/_search

    [03:24]
  • 14

    全局匹配查询全局搜索curl -X GET "localhost:9200/student/class1/_search?q=yellow"kibana:GET /student/_search?q=yellow

    [08:06]
  • 15

    合并搜索(一)GET _mget{ "docs" : [ { "_index" : "student", "_type" : "class1", "_id" : 10 }, { "_index" : "student", "_type" : "class1", "_id" : 1, "_source": "age" } ]}curl -X GET "localhost:9200/_mget?pretty" -H 'Content-Type: application/json' -d'{ "docs" : [ { "_index" : "student", "_type" : "class1", "_id" : 10 }, { "_index" : "student", "_type" : "class1", "_id" : 1

    [05:49]
  • 16

    合并搜索(二)GET _mget{ "docs" : [ { "_index" : "student", "_type" : "class1", "_id" : 10, "_source" : ["name", "age"] }, { "_index" : "student", "_type" : "class1", "_id" : 1, "_source": "age" } ]}

    [03:05]
  • 17

    复合条件查询复合条件搜索+name:(yuan zhang) +age:>35 +(male)q=male <==> q=+(male)+ 前缀表示必须与查询条件匹配。- 前缀表示一定不与查询条件匹配。没有 + 或者 - 的所有其他条件都是可选的——匹配的越多,文档就越相关。

    [11:38]
  • 18

    批量操作POST /_bulk{ "delete": { "_index": "student", "_type": "class1", "_id": "3" }} { "create": { "_index": "student", "_type": "class1", "_id": "101" }}{ "name": "xiaozhao" }{ "index": { "_index": "student", "_type": "class1" }}{ "name": "xiaoqiang", "age" : 15 }{ "update": { "_index": "student", "_type": "class1", "_id": "10"} }{ "doc" : {"age" : 32} } POST /student/class1/_bulk{ "delete": { "_id": "2" }} { "create": { "_id": "200" }}{ "name": "xiaozhang" }

    [09:31]
展开更多
在线
客服
APP
下载

下载Android客户端

下载iphone 客户端

官方
微信

关注官方微信

返回
顶部