Customizing default Strapi Admin search

the admin has its own api and own routes You would have to add a middleware into the custom route used by the WYSIWYG search