Fixed as part of HSEARCH-3082; we included a forbiddenapis rule so that any SearchException we throw in the future will have to be instantiated by JBoss Logging.