diff --git a/src/services/search/expressions/note_content_protected_fulltext.js b/src/services/search/expressions/note_content_protected_fulltext.js index fd8bf9128..d24838547 100644 --- a/src/services/search/expressions/note_content_protected_fulltext.js +++ b/src/services/search/expressions/note_content_protected_fulltext.js @@ -44,7 +44,7 @@ class NoteContentProtectedFulltextExp extends Expression { if (type === 'text' && mime === 'text/html' - && content.length < 50000 // striptags is very slow for large notes + && content.length < 20000 // striptags is very slow for large notes ) { content = striptags(content); content = content.replace(/ /g, ' '); diff --git a/src/services/search/expressions/note_content_unprotected_fulltext.js b/src/services/search/expressions/note_content_unprotected_fulltext.js index c9212a431..7f8df513f 100644 --- a/src/services/search/expressions/note_content_unprotected_fulltext.js +++ b/src/services/search/expressions/note_content_unprotected_fulltext.js @@ -30,7 +30,7 @@ class NoteContentUnprotectedFulltextExp extends Expression { if (type === 'text' && mime === 'text/html' - && content.length < 50000 // striptags is very slow for large notes + && content.length < 20000 // striptags is very slow for large notes ) { content = striptags(content); content = content.replace(/ /g, ' ');