]> BookStack Code Mirror - bookstack/commitdiff
Expanded list of indexing split chars
authorDan Brown <redacted>
Sun, 15 Oct 2017 17:51:01 +0000 (18:51 +0100)
committerDan Brown <redacted>
Sun, 15 Oct 2017 18:14:31 +0000 (19:14 +0100)
Expands on #531

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