You can sort like this (I believe that _version_ is the internal id/index
number for the document, but you might want to verify)

In the Admin UI, enter the following in the sort field:

_version_ asc

You could also put an entry in the default searchHandler in solrconfig.xml
to do this to every incoming query...

This is the one that gets hit from "/select"

It would look something like this although I haven't tested...  Don't know
if a colon is necessary or not between the fieldname and desc.

<str name="sort">_version_ desc</str>

And, of course, you can put it on the URL you are hitting if that's what
you need to do.



On Mon, Apr 4, 2016 at 11:34 AM, Steven White <swhite4...@gmail.com> wrote:

> 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
>

Reply via email to