Re: Sum of one field

2008-08-06 Thread Koji Sekiguchi
> > Just on I'm working on the similar issue per customer request. > > StatsComponent - it will return min,max,sum,qt,avg as follows: > > Seems like perhaps one should be able to return any arbitrary function > (actually multiple), and sort by an arbitrary function also. Sounds interesting. WRT a

Re: Sum of one field

2008-08-06 Thread Leonardo Dias
Yes, this would be the standard option, but actually we are a classified ads website. Organizing each product in one document is a much better option for us and for our customers, so that they can understand the search results and find the place they want to go. The facet approach is being tes

Re: Sum of one field

2008-08-06 Thread Yonik Seeley
On Wed, Aug 6, 2008 at 10:46 AM, Koji Sekiguchi <[EMAIL PROTECTED]> wrote: > Just on I'm working on the similar issue per customer request. > StatsComponent - it will return min,max,sum,qt,avg as follows: Seems like perhaps one should be able to return any arbitrary function (actually multiple), a

Re: Sum of one field

2008-08-06 Thread Koji Sekiguchi
look up quantity for any docID you want. There may be other/better ways of doing this, but this is what comes to (my) mind first. Otis -- Sematext -- http://sematext.com/ -- Lucene - Solr - Nutch - Original Message From: Leonardo Dias <[EMAIL PROTECTED]> To: solr-user@lucene

Re: Sum of one field

2008-08-06 Thread Leonardo Dias
://sematext.com/ -- Lucene - Solr - Nutch - Original Message From: Leonardo Dias <[EMAIL PROTECTED]> To: solr-user@lucene.apache.org Sent: Monday, August 4, 2008 1:19:45 PM Subject: Sum of one field Everyone exhibits "your search for x has returned y results" on the to

Re: Sum of one field

2008-08-06 Thread Svein Parnas
om/ -- Lucene - Solr - Nutch - Original Message From: Leonardo Dias <[EMAIL PROTECTED]> To: solr-user@lucene.apache.org Sent: Monday, August 4, 2008 1:19:45 PM Subject: Sum of one field Everyone exhibits "your search for x has returned y results" on the top of the res

Re: Sum of one field

2008-08-05 Thread Norberto Meijome
On Tue, 05 Aug 2008 18:58:42 -0300 Leonardo Dias <[EMAIL PROTECTED]> wrote: > So I'm looking for a Ferrari. CarStore says that there are 5 ads for > Ferrari, but one ad has 2 Ferraris being sold, the other ad has 3 > Ferraris and all the others have 1 Ferrari each, meaning that there are > 5 ad

Re: Sum of one field

2008-08-05 Thread Leonardo Dias
. There may be other/better ways of doing this, but this is what comes to (my) mind first. Otis -- Sematext -- http://sematext.com/ -- Lucene - Solr - Nutch - Original Message From: Leonardo Dias <[EMAIL PROTECTED]> To: solr-user@lucene.apache.org Sent: Monday, August 4, 20

Re: Sum of one field

2008-08-04 Thread Norberto Meijome
On Mon, 04 Aug 2008 14:19:45 -0300 Leonardo Dias <[EMAIL PROTECTED]> wrote: > Everyone exhibits "your search for x has returned y results" on the top > of the results page, but we need something else, which would be > something like "your search for x returned y results in z records", > being z

Re: Sum of one field

2008-08-04 Thread Otis Gospodnetic
s of doing this, but this is what comes to (my) mind first. Otis -- Sematext -- http://sematext.com/ -- Lucene - Solr - Nutch - Original Message > From: Leonardo Dias <[EMAIL PROTECTED]> > To: solr-user@lucene.apache.org > Sent: Monday, August 4, 2008 1:19:45 PM > Su

Sum of one field

2008-08-04 Thread Leonardo Dias
Everyone exhibits "your search for x has returned y results" on the top of the results page, but we need something else, which would be something like "your search for x returned y results in z records", being z the numdocs of the SOLR response and y a SUM(quantity) of all returned records. I