After creating scripted field everything in kibana dashboard disappears?

actually i deleted all the indexes and documets and then created new index today,what should i do?
Also I cannot see .keyword values for some of the fields in available fields