/** * Indexes a Location in the index storage * * @param \eZ\Publish\SPI\Persistence\Content\Location $location */ public function indexLocation(Location $location) { $document = $this->mapper->mapLocation($location); $this->gateway->index($document); }
/** * Indexes a content object * * @param \eZ\Publish\SPI\Persistence\Content $content */ public function indexContent(Content $content) { $document = $this->mapper->mapContent($content); $this->gateway->index($document); }