SOLR如何从SolrResponse获取SolrInputDocument以更新文档?

时间:2016-03-29 10:57:59

标签: solr

当我尝试这段代码时,我有一个日志说

Call to undefined method SolrQueryResponse::getInputDocument() in...

$solrQueryResponse->setParseMode(\SolrQueryResponse::PARSE_SOLR_DOC);
$res = $solrQueryResponse->getResponse();
$doc = $res->response->docs[0]->getInputDocument();

0 个答案:

没有答案