--- 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

Reply via email to