is there a parameter or configuration that change the behavior of the query "size" parameter.
Using a Elastic 5.4.1 i was surprise that
GET _search
{ "size" : 1
,"query": {"match_all": {}}
}
found effectively millions of hits but return the traditionalm (default) 10 hits where I expect only 1. I try several format (size after the query, adding "from" attribut, specific index, ...) failed to return only 1 hit. A quick test on another Elastic confirm that the query should return 1 hit.
the head of reply show no problem
{
"took": 187,
"timed_out": false,
"_shards": {
"total": 321,
"successful": 321,
"failed": 0
},
"hits": {
"total": 7471874,
"max_score": 1,
"hits": [ ... the 10 {} ...