minimumLength fixes for search

minimumLength fixes for search