Pass filters into search function