add a reference to Elasticsearch document metadata