added function to add new job document to index.