Throw parsing exception if terms filter or query has more than one field

Closes #5014