Simplifies the search filter