Default sorting


(Wing) #1

I have specified "sorting" when querying my documents. But when some
documents share the same "sorting value", then what is the sorting
order?

I expect it is the "id" field of es document as if I used lucene
natively in the past, but it is not for es result. Or do I need to
specify the "default" sorting as "id" field explicitly every time I do
querying?

Thanks,
Wing


(Shay Banon) #2

There is no additional order defined, unless you specify an additional
field to sort by.

On Mon, Jun 4, 2012 at 11:51 AM, Yiu Wing TSANG ywtsang@gmail.com wrote:

I have specified "sorting" when querying my documents. But when some
documents share the same "sorting value", then what is the sorting
order?

I expect it is the "id" field of es document as if I used lucene
natively in the past, but it is not for es result. Or do I need to
specify the "default" sorting as "id" field explicitly every time I do
querying?

Thanks,
Wing


(system) #3