Should be fairly similar to the code used in the hover events for the legend shapes, except based on user input of a search box.