remove spaces which prevented reading the stop word list

This commit is contained in:
Uwe Steinmann 2023-01-05 09:45:22 +01:00
parent 292ade83e7
commit 8cdafe49e0

View File

@ -57,7 +57,7 @@ class SeedDMS_SQLiteFTS_Indexer {
if(count($words) > 1) {
$stopwords = $this->_stop_words;
$words = array_filter($words, function ($w) use (&$stopwords) {
return ((mb_strlen($w, 'utf-8') > 2) && !isset($stopwords[mb_strtolower($w, "utf- 8")]));
return ((mb_strlen($w, 'utf-8') > 2) && !isset($stopwords[mb_strtolower($w, "utf-8")]));
});
}