1) The hard coded implicit default sort order is "score desc" 

2) Whenever a sort results in ties, the final ordering of tied documents 
is non-deterministic

3) currently the behavior is that tied documents are returned in "index 
order" but that can change as segments are merged

4) if you wish to change the beahvior when there is a tie, just add 
additional deterministic sort clauses to your sort param.  This can be 
done at the request level, or as a user specified "default" for the 
request handler...

https://cwiki.apache.org/confluence/display/solr/InitParams+in+SolrConfig


: Date: Mon, 4 Apr 2016 13:34:27 -0400
: From: Steven White <swhite4...@gmail.com>
: Reply-To: solr-user@lucene.apache.org
: To: solr-user@lucene.apache.org
: Subject: Sort order for *:* query
: 
: Hi everyone,
: 
: When I send Solr the query *:* the result I get back is sorted based on
: Lucene's internal DocID which is oldest to most recent (can someone correct
: me if I get this wrong?)  Given this, the most recently added / updated
: document is at the bottom of the list.  Is there a way to reverse this sort
: order?  If so, how can I make this the default in Solr's solrconfig.xml
: file?
: 
: Thanks
: 
: Steve
: 

-Hoss
http://www.lucidworks.com/

Reply via email to