You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Thorsten Scherler <th...@juntadeandalucia.es> on 2007/11/23 12:43:14 UTC

Get last updated/committed document

Hi all,

I need to ask solr to return me the id of the last committed document.

Is there a way to archive this via a standard lucene query or do I need
a custom connector that gives me this information?

TIA for any information

salu2
-- 
Thorsten Scherler                                 thorsten.at.apache.org
Open Source Java                      consulting, training and solutions


Re: Get last updated/committed document

Posted by Thorsten Scherler <th...@juntadeandalucia.es>.
On Sat, 2007-11-24 at 00:17 +1100, climbingrose wrote:
> Assuming that you have the timestamp field defined:
> q=*:*&sort=timestamp desc
> 

Thanks.

salu2

> On Nov 23, 2007 10:43 PM, Thorsten Scherler
> <th...@juntadeandalucia.es> wrote:
> > Hi all,
> >
> > I need to ask solr to return me the id of the last committed document.
> >
> > Is there a way to archive this via a standard lucene query or do I need
> > a custom connector that gives me this information?
> >
> > TIA for any information
> >
> > salu2
> > --
> > Thorsten Scherler                                 thorsten.at.apache.org
> > Open Source Java                      consulting, training and solutions
> >
> >
> 
> 
> 
-- 
Thorsten Scherler                                 thorsten.at.apache.org
Open Source Java                      consulting, training and solutions


Re: Get last updated/committed document

Posted by climbingrose <cl...@gmail.com>.
Assuming that you have the timestamp field defined:
q=*:*&sort=timestamp desc

On Nov 23, 2007 10:43 PM, Thorsten Scherler
<th...@juntadeandalucia.es> wrote:
> Hi all,
>
> I need to ask solr to return me the id of the last committed document.
>
> Is there a way to archive this via a standard lucene query or do I need
> a custom connector that gives me this information?
>
> TIA for any information
>
> salu2
> --
> Thorsten Scherler                                 thorsten.at.apache.org
> Open Source Java                      consulting, training and solutions
>
>



-- 
Regards,

Cuong Hoang