I have a Web collection which parses an XML feed. The feed contains a text field from which I want to extract a year value. For example "September 2019" would extract "2019". This would ideally be stored as a separate metadata value.
I have used
host_post_datafetch.groovy to successfully extract the value but it isn't available to the facet.
I read that the post_datafetch runs before the facet data is generated (https://docs.funnelback.com/15.18/develop/programming-options/hook-scripts.html#transforming-each-result). I don't see why the facet value isn't affected by the hook script. Please can someone explain.
I do have a couple of workarounds for this problem but I'm interested to be able to manipulate metadata for faceting.
I'm using Funnelback 15.14.0 hosted in the cloud by Funnelback.