SolrInputDocument::addField
(PECL solr >= 0.9.2)
SolrInputDocument::addField — Adds a field to the document
prabhatkr at gmail dot com ¶7 years ago
The method from second example here http://php.net/manual/en/solr.examples.php fails to add document, with following error.
-----
[qtp853119666-20] WARN org.apache.solr.handler.loader.XMLLoader – XML element <add> has invalid XML attr: allowDups
-----
This is possibly a solr bug or pecl issue.
Any help here please?
官方地址:https://www.php.net/manual/en/solrinputdocument.addfield.php