index() abstract public method

Indexes a given $document.
abstract public index ( Document $document )
$document Document
示例#1
0
 /**
  * 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);
 }
示例#2
0
 /**
  * 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);
 }