Hello,
I’m Darshan Hiranandani, working with a Web collection in Funnelback that processes an XML feed. One of the text fields in the feed contains dates in the format "September 2019," and I’d like to extract the year (i.e., "2019") and use it as metadata for faceting.
I’m using host_post_datafetch.groovy to extract the year successfully, but I can’t seem to make the extracted value available for faceting.
From what I’ve read, post_datafetch runs before the facet data is generated (per the Funnelback docs: https://docs.funnelback.com/15.18/develop/programming-options/hook-scripts.html#transforming-each-result5), so I’m puzzled as to why the facet value isn’t affected by the script.
Has anyone run into this or found a way to make the metadata accessible for faceting? I’ve got a couple of workarounds, but I’d love some advice on how to achieve this more directly.
Thanks for any help!
Regards
Darshan Hiranandani