mirror of
https://github.com/simon987/Simple-Incremental-Search-Tool.git
synced 2025-12-20 02:15:56 +00:00
multithreading fixes and optimizations
This commit is contained in:
@@ -206,6 +206,8 @@ function createDocCard(hit) {
|
||||
|
||||
if (hit.hasOwnProperty("highlight") && hit["highlight"].hasOwnProperty("name")) {
|
||||
title.insertAdjacentHTML('afterbegin', hit["highlight"]["name"] + extension);
|
||||
} else if (hit.hasOwnProperty("highlight") && hit["highlight"].hasOwnProperty("name.nGram")) {
|
||||
title.insertAdjacentHTML('afterbegin', hit["highlight"]["name.nGram"] + extension);
|
||||
} else {
|
||||
title.appendChild(document.createTextNode(hit["_source"]["name"] + extension));
|
||||
}
|
||||
@@ -491,7 +493,6 @@ function search() {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//Setup page
|
||||
let resultContainer = makeResultContainer();
|
||||
searchResults.appendChild(resultContainer);
|
||||
|
||||
Reference in New Issue
Block a user