updated indexing api
added UpdateDocumentRequest