This post discusses the same. In short, query for the document Ids , get corresponding document and update the same.