If the sort key (score, title, whatever) is the same for two documents, they
will be displayed in internal doc ID order. That can be different on different
replicas or indexes. I’ve seen this with Solr Cloud and documents with short
titles.
To get a stable order, have a secondary sort by ID. Something like:
score desc, id desc
wunder
Walter Underwood
[email protected]
http://observer.wunderwood.org/ (my blog)
> On Jan 15, 2025, at 4:30 AM, Binal Panchal <[email protected]> wrote:
>
> Hello Team,
>
> I have two Solr indexes having the same documents. If I do sorting, the
> results are the same but the order is different. How does Solr decide the
> ordering, on what basis?
>
> Thanks & Regards,
> Binal Pancha