This is good but you can make it slightly better by dehydrating the code even more. You can see that the only part which changes is "hide" and "show"

var action = data.text.indexOf(searchString) !== -1 ? "show" : "hide";
$("#" + data.id)[action]();