Setting specific analyzer for index type

Is there a way to set up a custom analyzer for a specific index type?
For instance, If I have two index type "Maths" and "Science", I want
everything indexed within the "Math" type to be analyzed by
"MathAnalyzer" and everything going to the "Science" type to be
analyzed by "ScienceAnalyzer".