fix undefined variable when raising the 'cannot filter ElasticSearch results on this field' error
fix undefined variable when raising the 'unrecognised lookup' error