Impelemented filter in the search.