Skip to content

NOW MANAGED ON CODEBERG

Expanded list of indexing split chars

Dan Browna98843894605
diff --git a/app/Services/SearchService.php b/app/Services/SearchService.php
index 3eeaf32aa..a8784ded1 100644
--- a/app/Services/SearchService.php
+++ b/app/Services/SearchService.php
@@ -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) {