Currently the only method for altering raw facet data is via the filter system, which is executed on a per-realm basis. It would be great to have a hook that alters facet data one right after it is returned from the server. The original idea stemmed from the discussion at #1302590: Allow filters to access the map.

Comments

cpliakas’s picture

Status: Active » Needs review
StatusFileSize
new2.49 KB

The attached patch allows for an "alter callback" that is applied on a per-facet basis and is invoked right after data is returned be the query type plugin.

cpliakas’s picture

StatusFileSize
new2.56 KB

Here is another patch that changes the "alter callbacks" key to an array so multiple altering functions can be applied to a facet.

cpliakas’s picture

cpliakas’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.