I am trying to define a pattern/rule in Elasticsearch which creates 2tokens out of 1token with a special character.
should generate the following 2 tokens:
The pattern/rule should convert:
so that not only "Servicekaufmann/-frau" would be converted but also other expressions e.g.
"Industrykaufmann/-frau" or in general any other "*kaufmann/-frau".
So far I have tried many different tokenfilters and workarounds but couldn't get the expected output and having right now a hard time (blocker).
Thank you in advance!