update : 2015.11.03
php.shukuma.com검색:
|
SolrClient::addDocuments(PECL solr >= 0.9.2) SolrClient::addDocuments — Adds a collection of SolrInputDocument instances to the index 설명
public void SolrClient::addDocuments
( array
$docs
[, bool $overwrite = true
[, int $commitWithin = 0
]] )Adds a collection of documents to the index. 인수
반환값Returns a SolrUpdateResponse object or throws an exception on failure. 오류/예외Throws SolrClientException if the client had failed, or there was a connection issue. Throws SolrServerException if the Solr Server had failed to process the request. 예제
Example #1 SolrClient::addDocuments() example
<?php 위 예제의 출력 예시: SolrObject Object ( [responseHeader] => SolrObject Object ( [status] => 0 [QTime] => 2 ) ) 참고
|