From fd3abb568cf432dafe4b031d35ef5204ce385212 Mon Sep 17 00:00:00 2001 From: Mike Colagrosso Date: Thu, 6 Feb 2025 14:45:41 -0700 Subject: [PATCH] Remove title, authors, and collections from `IndexableText` Those properties are indexed separately. `FullTitle` and `AlternateTitle` are still indexed here. --- lib/Ebook.php | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/lib/Ebook.php b/lib/Ebook.php index 4c9aaad1..c18ce5e0 100644 --- a/lib/Ebook.php +++ b/lib/Ebook.php @@ -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; }