When you look up the text, you can increase the specificity of the search to only search elements with the name class:
$(this).toggle($(this).find(".name").text().toLowerCase().indexOf(value) > -1)
I added a .find() call to the element which will narrow the scope of the .text() call to only elements with the name class.