黑马 Elasticsearch 全套教程,黑马旅游网案例

黑马 Elasticsearch 全套教程,黑马旅游网案例

一、参考资料

【黑马Elasticsearch全套教程,含DSL查询语法、数据聚合、ES集合,最后配有黑马旅游网案例】 https://www.bilibili.com/video/BV1b8411Z7w5/?p=14\&share_source=copy_web\&vd_source=855891859b2dc554eace9de3f28b4528

二、笔记总结

14、RestClient 操作数索引库-导入 demo






15、hotel 数据结构分析










json 复制代码
PUT /hotel
{
  "mappings": {
    "properties": {
      "id": {
        "type": "keyword"
      },
      "name":{
        "type": "text",
        "analyzer": "ik_max_word",
        "copy_to": "all"
      },
      "address":{
        "type": "keyword",
        "index": false
      },
      "price":{
        "type": "integer"
      },
      "score":{
        "type": "integer"
      },
      "brand":{
        "type": "keyword",
        "copy_to": "all"
      },
      "city":{
        "type": "keyword",
        "copy_to": "all"
      },
      "starName":{
        "type": "keyword"
      },
      "business":{
        "type": "keyword"
      },
      "location":{
        "type": "geo_point"
      },
      "pic":{
        "type": "keyword",
        "index": false
      },
      "all":{
        "type": "text",
        "analyzer": "ik_max_word"
      }
    }
  }
}

16、初始化 RestClient






17、创建索引库




18、删除和判断索引库



19、新增文档





20、查询文档


21、更新文档


22、删除文档

23、批量导入文档


三、笔记总结

12、RestClient 查询文档-快速入门




13、match、term、range、bool 查询




14、排序和分页

15、高亮显示








16、黑马旅游案例-搜索、分页












17、条件过滤




18、我附近的酒店




19、广告置顶




相关推荐
Databend10 小时前
2KB histogram 背后:Databend 如何低成本追踪长尾延迟
大数据·数据分析·agent
Databend12 小时前
从湖仓升级为 Agent 时代的数据控制面,Snowflake 和 Databricks 有哪些布局
大数据·数据库·agent
Elasticsearch16 小时前
深入解析 simdvec:Elasticsearch 如何利用神经网络和视频编解码 CPU 指令实现向量搜索
elasticsearch
阿里云大数据AI技术1 天前
StarRocks x Fluss x Paimon湖流一体方案:构建秒级响应、湖流一体的实时数据引擎
大数据·人工智能
Databend1 天前
Agent 轨迹分析与归因的数据工程实践
大数据·数据库·agent
喵个咪1 天前
Go Wind UBA 拆解系列 - 架构总览:三服务、数据流与契约优先
大数据·后端·go
喵个咪1 天前
Go Wind UBA 拆解系列 - 多租户与安全:两套隔离机制的边界
大数据·后端·go
喵个咪1 天前
Go Wind UBA 拆解系列 - OLAP 与 SQL 硬核:25 个分析模型怎么落地
大数据·后端·go
喵个咪1 天前
Go Wind UBA 拆解系列 - SDK 与采集层:从浏览器到 Kafka
大数据·后端·go
Elasticsearch2 天前
一条命令。自然语言。你的 Elasticsearch 数据,直接进入终端
elasticsearch