I have a simple index with 4 docs containing a "tag" field, with the values
"alpha", "beta", "delta" and "gamma", respectively. It appears that when I
restrict the "size" to less than the total number of hits, the "order" is
ignored. The same request works as expected in 0.20.6.
request:
{
"from" : 0,
"size" : 2,
"query" : {
"match_all" : { }
},
"version" : true,
"sort" : [ {
"tag" : {
"order" : "asc"
}
} ]
}
response:
{
"took" : 17,
"timed_out" : false,
"_shards" : {
"total" : 1,
"successful" : 1,
"failed" : 0
},
"hits" : {
"total" : 4,
"max_score" : null,
"hits" : [ {
"_index" : "c1cp147rfj",
"_type" : "event",
"_id" : "bruovacpmo",
"_version" : 1,
"_score" : null, "_source" : {"tag":"alpha"},
"sort" : [ "alpha" ]
}, {
"_index" : "c1cp147rfj",
"_type" : "event",
"_id" : "29bv3m8n8a",
"_version" : 1,
"_score" : null, "_source" : {"tag":"gamma"},
"sort" : [ "gamma" ]
} ]
}
}
--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.