emory
                freeFunction(resultPtr);
                
                if (!resultString) {
                    resultsDiv.innerHTML = '<div class="no-results">No results found</div>';
                    statusDiv.textContent = `No results found for "${query}" (${searchTime}ms)`;
                    return;
                }
                
                const results = JSON.parse(resultString);
                
                if (results.length === 0) {
                    resultsDiv.innerHTM