Terms facet will now throw a parsing exception if no field, fields or a script is supplied.

Previously you'd get an NPE. Also added extra exception when called with unknown parameters.