Issue with finding length of a text field

If you look at the mapping for the index it might be because you have this problem