add method for setting token analyzer for a text field