mirror of
https://github.com/standardebooks/web.git
synced 2025-07-17 11:56:38 -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{
|
protected function GetIndexableText(): string{
|
||||||
if(!isset($this->_IndexableText)){
|
if(!isset($this->_IndexableText)){
|
||||||
$this->_IndexableText = $this->FullTitle ?? $this->Title;
|
$this->_IndexableText = $this->FullTitle ?? '';
|
||||||
|
|
||||||
$this->_IndexableText .= ' ' . $this->AlternateTitle;
|
$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){
|
foreach($this->Tags as $tag){
|
||||||
$this->_IndexableText .= ' ' . $tag->Name;
|
$this->_IndexableText .= ' ' . $tag->Name;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue