Hi Ahmet, Thanks for your reply, but I want ALL documents with age = max_age.
On Tue, Oct 18, 2011 at 9:59 AM, Ahmet Arslan <[email protected]> wrote: > > > --- On Tue, 10/18/11, Alireza Salimi <[email protected]> wrote: > > > From: Alireza Salimi <[email protected]> > > Subject: Find Documents with field = maxValue > > To: [email protected] > > Date: Tuesday, October 18, 2011, 4:10 PM > > Hi, > > > > It might be a naive question. > > Assume we have a list of Document, each Document contains > > the information of > > a person, > > there is a numeric field named 'age', how can we find those > > Documents whose > > *age* field > > is *max(age) *in one query. > > May be http://wiki.apache.org/solr/StatsComponent? > > Or sort by age? q=*:*&start=0&rows=1&sort=age desc > -- Alireza Salimi Java EE Developer
