Expanded list of indexing split chars

Expands on #531
This commit is contained in:
Dan Brown 2017-10-15 18:51:01 +01:00
parent 3bf7cac030
commit a988438946
No known key found for this signature in database
GPG Key ID: 46D9F943C24A2EF9

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