Sort by index order desc?

2010-07-23 Thread Ryan McKinley
Any pointers on how to sort by reverse index order?
http://search.lucidimagination.com/search/document/4a59ded3966271ca/sort_by_index_order_desc

it seems like it should be easy to do with the function query stuff,
but i'm not sure what to sort by (unless I add a new field for indexed
time)


Any pointers?

Thanks
Ryan


Re: Sort by index order desc?

2010-07-23 Thread Ryan McKinley
Looks like you can sort by _docid_ to get things in index order or
reverse index order.

?sort=_docid_ asc

thank you solr!


On Fri, Jul 23, 2010 at 2:23 PM, Ryan McKinley ryan...@gmail.com wrote:
 Any pointers on how to sort by reverse index order?
 http://search.lucidimagination.com/search/document/4a59ded3966271ca/sort_by_index_order_desc

 it seems like it should be easy to do with the function query stuff,
 but i'm not sure what to sort by (unless I add a new field for indexed
 time)


 Any pointers?

 Thanks
 Ryan



Sort by index order desc

2007-04-10 Thread jb

Hello,

With Lucene, instead of returning results by date, I return results in the
reverse index order (last doc added is returned first)

For example :

hits = searcher.search(luceneQuery,new Sort(new SortField(null,
SortField.DOC, true))

How can I do that with Solr ?
Thanks.

JBC


Re: Sort by index order desc

2007-04-10 Thread Yonik Seeley

On 4/10/07, jb [EMAIL PROTECTED] wrote:

Thanks for your answer. I will use a timestamp  while waiting.
Do you think this feature will be added in a future release ?


Most likely... but if someone supplies a patch it might be even quicker :-)

-Yonik


Re: Sort by index order desc

2007-04-10 Thread jb

It would be great, yes :-)

2007/4/10, Yonik Seeley [EMAIL PROTECTED]:

On 4/10/07, jb [EMAIL PROTECTED] wrote:
 Thanks for your answer. I will use a timestamp  while waiting.
 Do you think this feature will be added in a future release ?

Most likely... but if someone supplies a patch it might be even quicker :-)

-Yonik