Cool… it worked… But the count of all the groups and the count inside stats component does not match… Is that a bug?
./zahoor On 11-Jan-2013, at 6:48 PM, Upayavira <u...@odoko.co.uk> wrote: > could you use field collapsing? Boost by date and only show one value > per group, and you'll have the most recent document only. > > Upayavira > > On Fri, Jan 11, 2013, at 01:10 PM, jmozah wrote: >> 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 <jmo...@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 >>> >>> >>> >>