Add generic search function for multiple filters.