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 <iori...@yahoo.com> wrote:

>
>
> --- On Tue, 10/18/11, Alireza Salimi <alireza.sal...@gmail.com> wrote:
>
> > From: Alireza Salimi <alireza.sal...@gmail.com>
> > Subject: Find Documents with field = maxValue
> > To: solr-user@lucene.apache.org
> > 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

Reply via email to