Re: Retrieve documents that contain max value for a field

2008-12-29 Thread Sushil Vegad
Component > > this will at least tell you the max/min versionId... right now it > only works with numeric values, so it won't help for timestamp. > > ryan > -- View this message in context: http://www.nabble.com/Retrieve-documents-that-contain-max-value-for-a-field-tp2117

Re: Retrieve documents that contain max value for a field

2008-12-27 Thread Ryan McKinley
We want to write a single query where the query returns doc1_1, doc2_2 and so on...that is for documents that have the same id, we want the query to return the document with highest versionId or the latest timestamp. Any thoughts how this can be done? not exactly what you are asking for,

Re: Retrieve documents that contain max value for a field

2008-12-26 Thread Sushil Vegad
olr FAQ? > > > Otis > -- > Sematext -- http://sematext.com/ -- Lucene - Solr - Nutch > > > > - Original Message >> From: Sushil Vegad >> To: solr-user@lucene.apache.org >> Sent: Friday, December 26, 2008 11:25:10 AM >> Subject: Retrieve do

Re: Retrieve documents that contain max value for a field

2008-12-26 Thread Otis Gospodnetic
- Original Message > From: Sushil Vegad > To: solr-user@lucene.apache.org > Sent: Friday, December 26, 2008 11:25:10 AM > Subject: Retrieve documents that contain max value for a field > > > Hi, > Can someone please help with how to write a query for the followin

Retrieve documents that contain max value for a field

2008-12-26 Thread Sushil Vegad
"versionDate", "2008-12-25T23:59:59Z"); We want to write a single query where the query returns doc1_1, doc2_2 and so on...that is for documents that have the same id, we want the query to return the document with highest versionId or the latest timestamp. Any thoughts how this can be done? Thanks, Sushil -- View this message in context: http://www.nabble.com/Retrieve-documents-that-contain-max-value-for-a-field-tp21175643p21175643.html Sent from the Solr - User mailing list archive at Nabble.com.