ignore full: result without highlight

This commit is contained in:
simon
2022-07-21 15:47:29 +07:00
parent 55a73995c8
commit 07016f2cc5

View File

@@ -877,8 +877,10 @@ function populateMultiSearchResults(allResults, queryType) {
if (allFullText.length > 0) {
for (let i = 0; i < allFullText.length; i++) {
const fullText = allFullText[i];
const fullTextDiv = createFulltext(fullText);
fullTextBox.appendChild(fullTextDiv);
if ("highlight" in fullText) {
const fullTextDiv = createFulltext(fullText);
fullTextBox.appendChild(fullTextDiv);
}
}
} else {
if (queryType === "simple" || queryType == "full") {