make metadata autocomplete use the proper pattern search function