... another "magic" field name like "score" ...

This could be done with a separate "magic" punctuation like $score, $mean
(the mean score), etc.so $docid would work.


Cheers,

Lance

-----Original Message-----
From: Chris Hostetter [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 18, 2008 9:01 PM
To: solr-user
Subject: Re: sort by index id descending?


: 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