I’m working with a Web collection that parses an XML feed and extracts a year value from a text field. I’m currently using host_post_datafetch.groovy to extract this value, but it isn’t available for faceting in Funnelback.
I’ve read that post_datafetch runs before facet data is generated, and I’m wondering why the facet value isn’t affected by the hook script. Do you have any insights on this issue?
I’m interested in knowing:
Why the metadata manipulated by post_datafetch isn’t available for faceting.
How to ensure that metadata modifications can be used for faceting.
Any workarounds or best practices for manipulating metadata for faceting in Funnelback.
use a post data fetch hook script to update the facet labels (not metadata values) - I recommend using the hook script that is part of the faceted navigation v2 code available on github. You only need the hook script if you want to rename your facet categories. In FB 16 you get the same behaviour via a supported plugin.