IndexableText improvements

Description and LongDescription were adding too many extraneous matches. Maintain
how special characters are handled in search currently.
This commit is contained in:
Mike Colagrosso 2024-07-05 18:43:56 -06:00 committed by Alex Cabal
parent 4abf6e29d2
commit d9b6e3020c

View file

@ -572,8 +572,8 @@ class Ebook{
}
}
$this->_IndexableText .= ' ' . $this->Description;
$this->_IndexableText .= ' ' . $this->LongDescription;
// Remove diacritics and non-alphanumeric characters
$this->_IndexableText = trim(preg_replace('|[^a-zA-Z0-9 ]|ius', ' ', Formatter::RemoveDiacritics($this->_IndexableText)));
}
return $this->_IndexableText;