Implementation of the search filter