Active
Project:
Facet API
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
10 May 2012 at 08:07 UTC
Updated:
19 Jul 2016 at 13:30 UTC
Jump to comment: Most recent
We would like to show the average value of a number column that is part of the search results inside a facet.
The result would then be that the facet, besided a #count attribute, also gets a #average attribute.
We could then use that average in, for example, this facetapi_graph widget we are working on.
What would be the best approach to implement this?
Comments
Comment #1
batje commentedI came across this page (for Solr) that pretty much describes that (at least) Solr can do exactly this.
That page also describes these statistics can be loaded on a field within a query basis. There is also an issue for this in the search_api queue.
Comment #1.0
batje commentedUsed the phrasing for the issue in the search_api issue queue
Comment #2
nwom commentedAggregating by Average would be incredibly beneficial for the project I'm working on right now as an example.
Comment #3
nwom commented