I guess, to generalize the idea, is to have some support for aggregation
functions. average anyone ;-) ? It would also be very useful to be able
to define the field that is being aggregated. For example, in a flight
reservation web site we developed we needed to show facets on different
flight fields (e.g. connections count, departure/arrival times, etc..)
but next to each facet value we needed to show the cheapest flight price.
cheers,
Uri
Otis Gospodnetic wrote:
Don't know what exactly I mean(t), and can't think of some appropriate
function, but my thinking was roughly: but what if we want to function foo, and
function foo has not been implemented. Can I write my own foo function and
plug it in somewhere? I'm theorizing though... I'll look at the patch later.
Otis
--
Sematext -- http://sematext.com/ -- Lucene - Solr - Nutch
----- Original Message ----
From: Jonathan Ariel <[EMAIL PROTECTED]>
To: solr-user@lucene.apache.org
Sent: Friday, May 30, 2008 3:36:21 PM
Subject: Re: Getting maximum and minimum values of a field
What do you mean? Right now you send an extra parameter
f.weight.facet.statistical=true and it will add statistical information to
the facet field response.
What I don't like is that I made the the changes to the SimpleFacet class
itself, it would nicer to have the ability to specify a different strategy
(different class) instead. So the code won't grow too much and we don't have
lots of ifs.
On Fri, May 30, 2008 at 10:31 AM, Otis Gospodnetic <
[EMAIL PROTECTED]> wrote:
Was thinking... how about making those functions pluggable? Doable?
Otis
--
Sematext -- http://sematext.com/ -- Lucene - Solr - Nutch
----- Original Message ----
From: "[EMAIL PROTECTED]"
To: solr-user@lucene.apache.org
Sent: Friday, May 30, 2008 3:56:14 AM
Subject: Re: Getting maximum and minimum values of a field
I know that I would definately be interested in that. :)
/Jimi
Quoting Jonathan Ariel :
Ok. So I have a version of solr with a small modification to the
SimpleFacet
class where you can send a parameter to tell that you want some more
info.
It'll bring back a list with the max and min values as well as the SD,
CV
and Mean for the facet values.
If you are interested I could generate a patch and add it to JIRA.
What do you think?
Jonathan
On Wed, May 28, 2008 at 12:58 AM, Jonathan Ariel wrote:
Hi!I'm looking for a way to get the maximum and minimum value of a
field
(like price) in a specific query. First I thought about using facet
for
that, but since price may have lots of different and unique values, a
facet
is not a good idea.
Any thoughts about how can I achieve this?
Thanks!
Jonathan