Sort by index order desc?
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?
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
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
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
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