public function handle(PageSearchSettingsWereUpdated $event)
 {
     $page = $event->getPage();
     $version = $page->getCurrentVersion();
     $standfirst = Chunk::find('text', 'standfirst', $version);
     $description = $page->getDescription();
     $description = $description == $standfirst ? '' : $description;
     SearchText::where('page_vid', '=', $version->getId())->update(['meta' => $page->getKeywords() . ' ' . $description]);
 }
 public function handle(PageEvent $event)
 {
     $page = $event->getPage();
     SearchText::where('page_id', '=', $page->getId())->delete();
 }
 public function handle(PageVersionEvent $event)
 {
     $version = $event->getVersion();
     SearchText::where('page_id', '=', $version->getPageId())->where('embargoed_until', '<', $version->getEmbargoedUntil()->getTimestamp())->delete();
 }