I have 3 indices
student (name=vg, gopal etc) teacher (teachername=robert, bob etc) Class (classname=maths, english etc)
What I want is to check student and teacher indices and based on a condition results I want to update school index
something like if
name=vg , teachername= robert then class=maths should be updater in Class index. This should be an automated process , so when data get into student , teacher index class modify accordingly ?