It *looks* as though Solr supports returning the results of arbitrary
calculations:

http://wiki.apache.org/solr/SolrQuerySyntax

However, I am so far unable to get any example working except in the
context of a dismax bf.  It seems like one ought to be able to write a
query to return the doc matching the max OR the min of a particular
field.

-Peter

On Tue, Feb 17, 2009 at 5:33 AM, Jacob Singh <jacobsi...@gmail.com> wrote:
> Hi,
>
> I'm trying to write some code to build a facet list for a date field,
> but I don't know what the first and last available dates are.  I would
> adjust the gap param accordingly.  If there is a 10yr stretch between
> min(date) and max(date) I'd want to facet by year.  If it is a 1 month
> gap, I'd want to facet by day.
>
> Is there a way to do this?
>
> Thanks,
> Jacob
>
> --
>
> +1 510 277-0891 (o)
> +91 9999 33 7458 (m)
>
> web: http://pajamadesign.com
>
> Skype: pajamadesign
> Yahoo: jacobsingh
> AIM: jacobsingh
> gTalk: jacobsi...@gmail.com
>



-- 
Peter M. Wolanin, Ph.D.
Momentum Specialist,  Acquia. Inc.
peter.wola...@acquia.com

Reply via email to