Add get_field method to document metadata.