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. Using *:* will not affect the performance and you will not need any additional ranking or sort, etc.

Regards,

- Nagendra Nagarajayya
http://solr-ra.tgels.org
http://rankingalgorithm.tgels.org

On 5/1/2012 7:38 AM, Yuval Dotan wrote:
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 contains 1,000,000,000 documents and i noticed that if the number
of found documents is very big (larger than 50% of the index size -
500,000,000 docs) than it takes more than 5 seconds to get the results even
with rows=50 parameter.
Is there a way to get the results faster?
Thanks
Yuval



Reply via email to