It looks as though a default score of 1 is used in the absence of any specified sort. From here:
The default sort order is _score descending. Filters have no bearing on _score, and the missing-but-implied match_all query just sets the _score to a neutral value of 1 for all documents. In other words, all documents are considered to be equally relevant.
The default is the sort by score and if the query is not specified or the filter is used then the score is emitted is always 1. In sort sorting always happens.
If your don't care about ordering you can then sort by the internal Lucene id of a document. This is the efficient way of just fetching some docs via the _search api, especially in the ES 2.0 beta and up. If you want to sort by internal id, you should use the _doc as field to sort by.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.