Is it possible to set up dynamic templates through conditions, for example i have an attributes object in my index which holds only dynamic data, there are hundreds of possible combinations of data that is passed into this object, but the majority of the time it would be best suited and most optimal as a keyword rather than text -> keyword.
So ideally i would like to convert strings to keywords if the char length is less than 20 else convert to text > keyword