Re: Retrieve documents that contain max value for a field

2008-12-29 Thread Sushil Vegad
This looks useful, but I am not sure how to use the component. Could you please elaborate? Also, this is not available in Solr 1.3. Any equivalent of it in 1.3? Thanks, Sushil ryantxu wrote: > > not exactly what you are asking for, but check: > http://wiki.apache.org/solr/StatsComponent > >

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
Thanks Otis, for the quick reply. I dont find anything on the forums or the FAQ. I guess I cant get solr to compare search result documents that have the same topicId and then look for the maximum value of versionId in that set. I may need to write that logic in my application. Thanks, Sushil

Re: Retrieve documents that contain max value for a field

2008-12-26 Thread Otis Gospodnetic
Hi, I'm not sure if Solr is the right tool for the job, if that's all there is to your application, but you might be able to get what you want by simply sorting on the version field. Your version field is a very precise timestamp, which means the version field will have LOTS of unique values,