original_string: public function flush()
      {
          if (!empty($this->documents)) {
              $this->resource->addDocuments($this->storeId, $this->documents);
              $this->clearDocuments();
          }
      }
code: public function flush()
      {
          if (!empty($this->documents)) {
              $this->resource->addDocuments($this->storeId, $this->documents);
              $this->clearDocuments();
          }
      }
code_tokens: public function flush ( ) { if ( ! empty ( $ this -> documents ) ) { $ this -> resource -> addDocuments ( $ this -> storeId , $ this -> documents ) ; $ this -> clearDocuments ( ) ; } }
docstring: Commit previously added documents to Solr and clear queue
  
  @return void
docstring_tokens: Commit previously added documents to Solr and clear queue