Store Content in IDOL Server > Process Data before you Index > Use Lua Script Index Tasks > Add a Field

Add a Field
The addField document function creates a new field when passed a name and value.
For example:
new_field = document:addField("TEST","123");
The addChildField document function creates a new nested XML field when passed the parent field object and a name and value.
For example:
chid_field = document:addChildField("parent_field","NESTED_TEST","123");