Pierre,

This is the issue to watch: https://issues.apache.org/jira/browse/SOLR-1023

I don't think there is a super nice way to do that currently.  You could use 
the match-all query (*:*) and sort by timestamp desc, and use start=0&rows=1.  
Using a raw timestamp that includes milliseconds is not recommended unless you 
really need milliseconds.


Otis
--
Sematext -- http://sematext.com/ -- Lucene - Solr - Nutch



----- Original Message ----
> From: Pierre-Yves LANDRON <pland...@hotmail.com>
> To: solr-user@lucene.apache.org
> Sent: Friday, February 20, 2009 8:04:28 PM
> Subject: Retrieve last indexed documents...
> 
> 
> Hello everybody,
> 
> I suppose this is a very common question, and I'm sorry if it has been 
> answered 
> before : How can I retrieve the last indexed documents (I use a timestamp 
> field 
> defined as 
> default="NOW" multiValued="false"/>) ? 
> 
> Thanks,
> Pierre Landron
> 
> _________________________________________________________________
> Show them the way! Add maps and directions to your party invites. 
> http://www.microsoft.com/windows/windowslive/products/events.aspx

Reply via email to