Store original document when aggregating