관리-도구
편집 파일: 022.solrdocument_getInputDocument.phpt
--TEST-- SolrDocument::getInputDocument() - creating SolrInputDocument from SolrDocument --FILE-- <?php require_once "bootstrap.inc"; $doc = new SolrDocument(); $doc->addField('id', 1123); $doc->features = "PHP Client Side"; $doc->features = "Fast development cycles"; $doc['cat'] = 'Software'; $doc['cat'] = 'Custom Search'; $doc->cat = 'Information Technology'; $input_doc = $doc->getInputDocument(); var_dump(get_class($input_doc)); ?> --EXPECT-- string(17) "SolrInputDocument"