The logic for the common_terms query was incorrect.