multithreading fixes and optimizations

This commit is contained in:
simon987
2019-04-05 19:59:21 -04:00
parent 60349cf954
commit 2e353c9787
7 changed files with 46 additions and 27 deletions

View File

@@ -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);