I'm pretty sure by internal document id, which changes upon segment
merge. If you depend on this, you need to include a field at index
time that'll be unchanging and then sort on that.

bq: Documents seem to be consistently returned in this order

This won't be invariant as the index changes and segments get merged.

Best,
Erick

On Thu, Feb 19, 2015 at 8:57 AM, Tang, Rebecca <rebecca.t...@ucsf.edu> wrote:
> If user searches for *:*, what order does solr return the results in?  I 
> expected the results to be returned in index order.  (I indexed the documents 
> in the order of the numeric document id from 0 -> ~15,000,000).
>
> So when I searched with *:*, I expected the first 10 documents returned to 
> have ids from 0 -> 9.
>
> But the first 10 id's were:
> 146263 146266 146254 146264 146265 146274 146277 146271 146279 146268
>
> Documents seem to be consistently returned in this order.
>
> How does solr order the results when the search is a blanket *:*?
>
> Rebecca Tang
> Applications Developer, UCSF CKM
> Industry Documents Digital Libraries
> E: rebecca.t...@ucsf.edu
>

Reply via email to