es

1.es 架构

 2. es 工作原理

 3. 命令:

## es scroll 游标查询全部数据
POST product/doc/_search?scroll=1m { "query": { "match_all": {} }, "size": 2 } POST _search/scroll { "scroll":"1m", "scroll_id":"DnF1ZXJ5VGhlbkZldGNoAwAAAAAAAABPFk4yT2o5akF3UXpleFh3YWV5YS1SSVEAAAAAAAAAUBZOMk9qOWpBd1F6ZXhYd2FleWEtUklRAAAAAAAAAFEWTjJPajlqQXdRemV4WHdhZXlhLVJJUQ==" } DELETE /_search/scroll { "scroll_id" : "DnF1ZXJ5VGhlbkZldGNoAwAAAAAAAABAFk4yT2o5akF3UXpleFh3YWV5YS1SSVEAAAAAAAAAQRZOMk9qOWpBd1F6ZXhYd2FleWEtUklRAAAAAAAAAEIWTjJPajlqQXdRemV4WHdhZXlhLVJJUQ==" } DELETE /_search/scroll/_all

参考文档:https://www.cnblogs.com/wangzhuxing/p/9569727.html

 

posted @ 2020-03-18 22:15  myvic  阅读(165)  评论(0编辑  收藏  举报