original_string: public function addDocument($document) {
  		if(is_array($document)) {
  			$this->addDocumentArray($document);
  		} elseif ($document instanceof Document) {
  			$this->addDocumentObject($document);
  		}
  	}
code: public function addDocument($document) {
  		if(is_array($document)) {
  			$this->addDocumentArray($document);
  		} elseif ($document instanceof Document) {
  			$this->addDocumentObject($document);
  		}
  	}
code_tokens: public function addDocument ( $ document ) { if ( is_array ( $ document ) ) { $ this -> addDocumentArray ( $ document ) ; } elseif ( $ document instanceof Document ) { $ this -> addDocumentObject ( $ document ) ; } }
docstring: Add a document in list of documents to push to index
  @param array|string|OpenSearchServer\Document\Document $document
docstring_tokens: Add a document in list of documents to push to index