0
我想向仅返回总点击数的ELS发送查询。elasticsearch仅返回总点击次数
没有别的
一样,如果我得到的输入反应
{ "took": 1111, "timed_out": false, "_shards": {
"total": 9,
"successful": 9,
"failed": 0 }, "hits": {
"total": 731552,
}
我只想打印731552
现在我只是发:
卷曲http://server:9200/games_profilder/_search
感谢
感谢您的伟大答案,但我使用python .. – art20170
这是一个语言不可知的解决方案直接内壳。如果您使用python,那么只需引用结果对象的'['hits'] ['total']'属性。 – Val