Implemented file patterns in search.