Add custom script for search filter

Hi is there any way to add a custom script to add condition on the search filter?


Thank you