摘要: 1. match系列之match(按条件查询) GET zhifou/doc/_search { "query": { "match": { "from": "gu" } } } 上例,查询条件是一步步构建出来的,将查询条件添加到match中即可,而match则是查询所有from字段的值中含有gu的 阅读全文
posted @ 2022-01-17 17:37 urls 阅读(113) 评论(0) 推荐(0) 编辑
摘要: # 增 PUT t1/doc/1 { "name": "zhangkai" } # 改 # update POST t1/doc/1/_update { "doc": { "name": "王小丽" } } # delete # 删除指定文档 DELETE t1/doc/1 # 删除索引 DELET 阅读全文
posted @ 2022-01-17 16:18 urls 阅读(101) 评论(0) 推荐(0) 编辑
摘要: elasticsearch与关系型数据的对比 Relational DBElasticsearch 数据库(database) 索引(indices) 表(tables) types 行(rows) documents 字段(columns) fields elasticsearch(集群)中可以包 阅读全文
posted @ 2022-01-17 15:03 urls 阅读(50) 评论(0) 推荐(0) 编辑