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
1 changed files with 4 additions and 2 deletions

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") {