Script for flattening parent categories of articles to make categories recursively searchable in elasticsearch.