written method to upload doc in index but testing not done yet