${highlightedTitle}
${item.content}...
`; } return `${highlightedTitle}`; }) .join(''); } }); $resultContainer.html(searchList); $resultContainer.find('a, .searchFilter').mouseover(function () { $(this).focus(); }); } } $.ajax({ type: "GET", url: `/search/search_current.json?v=${Date.now()}`, dataType: "json", success: function (response) { const uniqueArray = []; const seen = new Set(); response.forEach(({ type, type_text }) => { if (!seen.has(type_text)) { seen.add(type_text); uniqueArray.push({ type, type_text }); } }); filterSearchResults(normalizedSearchField, response); }, error: function () { $resultContainer.empty(); } }); }, 300); }