eZ\Publish\Core\Search\Elasticsearch\Content\Gateway::index PHP Method

index() abstract public method

Indexes a given $document.
abstract public index ( Document $document )
$document Document
    public abstract function index(Document $document);

Usage Example

示例#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);
 }
All Usage Examples Of eZ\Publish\Core\Search\Elasticsearch\Content\Gateway::index