elasticsearch extension - how do i define mapping and analyzers?

Not sure if this thread belongs in this subforum or the extensions subforum, but sorry if I misplaced it.

Basically, the title is my question. I google quite a bit, yet didn’t find the answer. Where can I explicitly define index analyzers and/or mapping via the extension? And if I can’t, is there a decent workaround?