Oops, nevermind.... you said _descending_.

However, you can configure a timestamp field and sort by that:


<field name="timestamp" type="date" indexed="true" stored="true" default="NOW" multiValued="false"/>

        Erik


On Mar 19, 2008, at 8:29 AM, Erik Hatcher wrote:
Wouldn't it sort by index id if you query for *:* and move any actual queries to fq parameters?

        Erik

On Mar 19, 2008, at 12:00 AM, Chris Hostetter wrote:

: Is there any way to sort by index id - descending? (by order of indexed)

Not that i can think of. Lucene already has support for it, so it would probably be a fairly simple patch if someone wanted to try to implement it, we just need some syntax to make the parameter parsing construct the right Sort object -- allthough I'm loath to add another "magic" field name like "score" since "docid" or "id" or anything else we can think of could
easily conflict with a field name in someones schema.

if we add something like this I'd want to add configuration to
solrconfig.xml to determine what the "magic" field names for sorting by
internal id and score should be.


-Hoss


Reply via email to