Mark posts as solved in an importer

Your other solution looks good. I hope you are calling post.save action later.