src/Sulu/Bundle/PageBundle/Search/EventSubscriber/StructureSubscriber.php
public function deindexUnpublishedDocument(UnpublishEvent $event)
    {
        $document = $event->getDocument();

        if (!$document instanceof StructureBehavior) {
            return;
        }

        $this->searchManager->deindex($document);
    }
public function deindexUnpublishedDocument(UnpublishEvent $event)
    {
        $document = $event->getDocument();

        if (!$document instanceof StructureBehavior) {
            return;
        }

        $this->searchManager->deindex($document);
    }
public function deindexUnpublishedDocument ( UnpublishEvent $ event ) { $ document = $ event -> getDocument ( ) ; if ( ! $ document instanceof StructureBehavior ) { return ; } $ this -> searchManager -> deindex ( $ document ) ; }
Deindexes the document from the search index for the website.

@param UnpublishEvent $event
Deindexes the document from the search index for the website .