]> BookStack Code Mirror - bookstack/blobdiff - app/Services/SearchService.php
Expanded list of indexing split chars
[bookstack] / app / Services / SearchService.php
index 3eeaf32aa35ff69fd7c2563ecd694410642178b1..a8784ded15dba077adcd98f960dc70a587372f24 100644 (file)
@@ -382,7 +382,7 @@ class SearchService
     protected function generateTermArrayFromText($text, $scoreAdjustment = 1)
     {
         $tokenMap = []; // {TextToken => OccurrenceCount}
-        $splitChars = " \n\t.,";
+        $splitChars = " \n\t.,!?:;()[]{}<>`'\"";
         $token = strtok($text, $splitChars);
 
         while ($token !== false) {