This error occurs if the query has returned too many results for lucene to handle.
Searhcing for "***" will undoubtedly return pretty much the whole repository!
To change this value, it's referenced in core-services-context.xml via the 'lucene.query.maxClauses' property, which in turn can be found in repository.properties. You could therefore override this value in your custom repository.properties file.