mirror of
https://github.com/standardebooks/web.git
synced 2025-07-15 02:46:46 -04:00
Remove title, authors, and collections from IndexableText
Those properties are indexed separately. `FullTitle` and `AlternateTitle` are still indexed here.
This commit is contained in:
parent
660f8b5e3e
commit
fd3abb568c
1 changed files with 1 additions and 9 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue