fixed a search bug in which a wildcard search does not return most relevant hits