search based on data-family on list items

earlier changing text of a font title to a different value would take it
off from search but now it does that based on a data-family attribute
set to the list item.