我在我的应用程序中使用了elastic search,我的数据库大约有15万条记录。那么,当从mysql导入数据到我的应用程序时,在elastic search中检查所有从mysql成功导入的数据至少需要20 minutes.How?elastic search中有什么命令可以检查这一点吗?
发布于 2016-02-19 00:36:24
您可以在elastisearch中使用Count API来检查records.This的数量是如何发出curl请求的
例如: curl -XGET 'http://localhost:9200/my_index/_count‘
这是您将获得的响应,count中的值将是记录数。
{"count":12963,"_shards":{"total":1,“成功”:1,“失败”:0}}
欲了解更多信息,请访问以下链接:https://www.elastic.co/guide/en/elasticsearch/reference/current/search-count.html
https://stackoverflow.com/questions/35480685
复制相似问题