Store Content in IDOL Server > Process Data before you Index > Use Lua Script Index Tasks > Change the Value of a Field

Change the Value of a Field
The functions fieldGetValue and fieldSetValue allow you to modify the contents of a field directly.
For example:
local content_field = document:findField("CONTENT")
local content = document:fieldGetValue(content_field)
content = content .. "\nCopyright MyCorp\n"
document:fieldSetValue(content_field, content)