Conditional dynamic templates

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

I think it is not possible to add this kind of conditional in dynamic template.
I would suggest using a pipeline so you can identify the term length and index in the keyword or text field.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.