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