Please help me to create a scripted field in Kibana?

Something like {"constant_score" : { "filter" : {"bool" : {"must_not" : [{"exists":{"field":"catdt"}}]}}}} but how to write this in scripted filed , that is the challenge for me ?