Document contains at least one immense term in field="errormsg.keyword" (whose UTF8 encoding is longer than the max length 32766

Thank you @spinscale for your answer.yes i am processing long multiline errors in the field errormsg .
So,where i can change the mapping of that field to be only text?