Just finished this tutorial on how to create an interface that will filter one list of items (eg. teachers) by a completely different list of items (eg. subjects) to find a perfect filter match.
Uses the same interface as the in-app filter BUT makes perfect (
AND) matches rather than