Refactoring of search filter

the method now return a user object.