I edited your post with </> icon to format it a bit better. (Still ugly though)
I don't think you can define an analyzer for the whole type like this.
You have to define analyzer per field or use dynamic templates.
Can you try without this "top level" analyzer?