我从搜索Elasticsearch获得部分结果:
curl -XGET 'http://1.1.1.1:9200/my.index-*/api/_search?q=name:foo'
我明白了:
{
"took": 14,
"timed_out": false,
"_shards": {
"total": 204,
"successful": 204,
"failed": 0
},
"hits": {
"total": 543,
"max_score": 2.734601,
"hits": [ .......
只显示10次点击......为什么?
答案 0 :(得分:1)
使用from和size,请参阅弹性网站上的文档。
click here to go to the documentation
{
"from" : 0, "size" : 10,
"query" : {
"match" : { "name" : "foo" }
}
}
默认为0和10,这是你获得10次点击的原因