Remove title, authors, and collections from IndexableText

Those properties are indexed separately. `FullTitle` and
`AlternateTitle` are still indexed here.
This commit is contained in:
Mike Colagrosso 2025-02-06 14:45:41 -07:00 committed by Alex Cabal
parent 660f8b5e3e
commit fd3abb568c

View file

@ -710,18 +710,10 @@ final class Ebook{
protected function GetIndexableText(): string{
if(!isset($this->_IndexableText)){
$this->_IndexableText = $this->FullTitle ?? $this->Title;
$this->_IndexableText = $this->FullTitle ?? '';
$this->_IndexableText .= ' ' . $this->AlternateTitle;
foreach($this->CollectionMemberships as $collectionMembership){
$this->_IndexableText .= ' ' . $collectionMembership->Collection->Name;
}
foreach($this->Authors as $author){
$this->_IndexableText .= ' ' . $author->Name;
}
foreach($this->Tags as $tag){
$this->_IndexableText .= ' ' . $tag->Name;
}