How to make returned hits ordered by _id?

(xiaofeng) #1

I found returned hits with the same score are not ordered by _id. Applying sorting on _id field can surely deal with this, but degrades query performance especially under heavy concurrency.

Is there any way to make the return hits order by _id, without using sorting?

(system) #2