/**
  * Commits the data to the Solr index, making it available for search.
  *
  * This will perform Solr 'soft commit', which means there is no guarantee that data
  * is actually written to the stable storage, it is only made available for search.
  * Passing true will also write the data to the safe storage, ensuring durability.
  *
  * @see bulkIndexContent() For info on why this is not on an SPI Interface yet.
  * 
  * @param bool $flush
  */
 public function commit($flush = false)
 {
     $this->gateway->commit($flush);
 }
 /**
  * Index search documents generated by generateDocument method.
  *
  * Notes:
  * - Does not force a commit on solr, depends on solr config, use {@see commit()} if you need that.
  * - On large amounts of data make sure to iterate with several calls to this function with a limited
  *   set of content objects, amount you have memory for depends on server, size of objects, & PHP version.
  *
  * @param \eZ\Publish\SPI\Search\Document[] $documents
  */
 public function bulkIndexDocuments(array $documents)
 {
     $this->gateway->bulkIndexDocuments($documents);
 }