Is it possible to inspect incoming queries before they are run, and deny their execution depending on certain things?
For example, suppose I'd like to reject a query if it's about to run on more than 4 indices.
Is this possible by developing a plugin? Is there an existing option (plugin or other)?
Will I suffer a significant reduction in cluster performance?