Updated search filter to exclude directory names