purgeIndex() abstract public method

Deletes all documents of a given $type from the index.
abstract public purgeIndex ( string $type )
$type string
Example #1
0
 /**
  * Purges all contents from the index
  *
  * @todo: Make this public API?
  *
  * @return void
  */
 public function purgeIndex()
 {
     $this->gateway->purgeIndex("location");
 }
Example #2
0
 /**
  * Purges all contents from the index
  *
  * @todo: Make this public API?
  *
  * @return void
  */
 public function purgeIndex()
 {
     $this->gateway->purgeIndex($this->documentTypeName);
 }
Example #3
0
 /**
  * Purges all contents from the index.
  *
  * @todo: Make this public API?
  */
 public function purgeIndex()
 {
     $this->gateway->purgeIndex($this->contentDocumentTypeIdentifier);
     $this->gateway->purgeIndex($this->locationDocumentTypeIdentifier);
 }
Example #4
0
 /**
  * Purges all contents from the index
  *
  * @todo: Make this public API?
  *
  * @return void
  */
 public function purgeIndex()
 {
     $this->gateway->purgeIndex("content");
 }