Hi,

I am investigating to implement an aggregate average function for a document
and require help for the same.

The problem is that I  have documents containing manufacturer, product,
rating (m,p,r)
and i want to find the top  manufacturers for product (p1,p2,...)--- can be
around 10 to 20 products
so i need to compute average rating for each manufacturer for these
products(p1,p2,..) and sort by this average.

solr.search.function package provides some features but cannot be used out
of the box.

Can someone guide me as to how can I achieve this, preferably develop a
search plugin to be used with solr.
I have checked out a recent version of solr code from trunk have not been
able to fully understand the flow.

my expected outcome is as follows:
 for a query like  (p:p1+p:p2+...)
find top 10 documents sorted on avg(r) based on r for each document from
p1,p2,...

Can I extend ProductFloatFunction class in some form to return the average.

-umar

Reply via email to