Rewrite search filter