support update replacement of documents