Insane ChatGPT example. What matter is this information; WP REST Search Controller class is specifically designed to handle searches via the WordPress REST API, and is not intended to be used with the query" object. There is no such thing in anywhere I searched.