You can do this with Solr 4.0 with RankingAlgorithm 1.4.2. Please pass
the below parameters to your search:
&age=latest&docs=50
For eg:
http://localhost:8983/solr/select/?q=*:*&age=latest&docs=50
This would inspect the latest last 50 documents in real time and returns
results accordingly. Us
you should reverse your sort algorithm. maybe you can override the tf
method of Similarity and return -1.0f * tf(). (I don't know whether
default collector allow score smaller than zero)
Or you can hack this by add a large number or write your own
collector, in its collect(int doc) method, you can
Dotan
>To: solr-user
>Sent: Tuesday, May 1, 2012 10:38 AM
>Subject: get latest 50 documents the fastest way
>
>Hi Guys
>We have a use case where we need to get the 50 *latest *documents that
>match my query - without additional ranking,sorting,etc on the results.
>My index c