contract has doc_id field