ElasticSearch实战(三十三)-滚动查询 超、凢脫俗 2022-08-28 13:58 150阅读 0赞 深度分页查询会给ES集群性能带来极大损耗,滚动查询可以避免这种情况。 **注:不知道有啥用,感觉很鸡肋** ** 1、数据准备** PUT student { "mappings" : { "properties" : { "name" : { "type" : "keyword" }, "age" : { "type" : "integer" } } } } POST _bulk { "index" : { "_index" : "student", "_id" : "1" } } { "name" : "张三", "age": 12} { "index" : { "_index" : "student", "_id" : "2" } } { "name" : "李四", "age": 10 } { "index" : { "_index" : "student", "_id" : "3" } } { "name" : "王五", "age": 11 } { "index" : { "_index" : "student", "_id" : "4" } } { "
还没有评论,来说两句吧...