ignore full: result without highlight

This commit is contained in:
simon 2022-07-21 15:47:29 +07:00
parent 55a73995c8
commit 07016f2cc5
No known key found for this signature in database
GPG Key ID: 2C15AA5E89985DD4

View File

@ -877,9 +877,11 @@ function populateMultiSearchResults(allResults, queryType) {
if (allFullText.length > 0) {
for (let i = 0; i < allFullText.length; i++) {
const fullText = allFullText[i];
if ("highlight" in fullText) {
const fullTextDiv = createFulltext(fullText);
fullTextBox.appendChild(fullTextDiv);
}
}
} else {
if (queryType === "simple" || queryType == "full") {
fullTextBox.innerHTML = "<p>No fulltext items found.</p>";