Can I change Query ResultSet and save the Document?

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