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.

so for a query like  (p:p1+p:p2+...)
find top 10 documents with (m,avg(r))

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

-umar

Reply via email to