Hello João Ferreira,
Once I read about an extension called “Educonnex Search Input”… I believe this is what u are looking for
In documentation it’s well explain how do it apply in your project!!
Example application : https://educonnexsearchinput-sandbox.mxapps.io/
Hope this helps, good luck!!
Regads, Bruno Makis.
You can achieve the requirement by creation a custom filter,
You can visit to my blog,
Let me know if you have any issues
Hope it helps!