您现在的位置是:首页 > 博客日记 > Search搜索 Search搜索

elasticsearch基础使用

2020-10-13 20:29:59 【Search搜索】 人已围观

搜索index索引所有内容

  1. GET /index/_search
  2. {
  3. "query": {
  4. "match_all": {}
  5. }
  6. }

查询index列表 设置limit 数据条数

  1. GET /index/_search
  2. {
  3. "query": {
  4. "match_all": {}
  5. },
  6. "from": 0,
  7. "size": 1
  8. }

删除index索引内容

  1. POST /speed_search_engine_test/_delete_by_query
  2. {
  3. "query": {
  4. "match_all": {}
  5. }
  6. }

删除index索引

  1. DELETE /speed_search_engine_test

删除es中所有索引

  1. DELETE /_all
  2. DELETE /*


关注TinyMeng博客,更多精彩分享,敬请期待!
 

很赞哦! ()