mirror of
https://github.com/standardebooks/web.git
synced 2025-07-06 23:00:28 -04:00
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:
parent
4abf6e29d2
commit
d9b6e3020c
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue