update documents when submitting via edit page

for full text search