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

purgeIndex() abstract public method

Deletes all documents of a given $type from the index.
abstract public purgeIndex ( string $type )
$type string
    public abstract function purgeIndex($type);

Usage Example

示例#1
0
 /**
  * Purges all contents from the index
  *
  * @todo: Make this public API?
  *
  * @return void
  */
 public function purgeIndex()
 {
     $this->gateway->purgeIndex("location");
 }
All Usage Examples Of eZ\Publish\Core\Search\Elasticsearch\Content\Gateway::purgeIndex