lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmozah <jmo...@gmail.com>
Subject Re: retrieving latest document **only**
Date Fri, 11 Jan 2013 13:10:14 GMT
one crude way is first query and pick the latest date from the result
then issue a query with q=timestamp[latestDate TO latestDate]

But i dont want to execute two queries...

./zahoor

On 11-Jan-2013, at 6:37 PM, jmozah <jmozah@gmail.com> wrote:

> 
> 
> 
>> What do you want?
>> 'the most recent ones' or '**only** the latest' ?
>> 
>> Perhaps a range query "q=timestamp:[refdate TO NOW]" will match your needs.
>> 
>> Uwe
>> 
> 
> 
> I need **only** the latest documents...
> in the above query , "refdate" can vary based on the query.
> 
> ./zahoor
> 
> 
> 


Mime
View raw message