| ユーザフォーラムで議論/質問 | マニュアル検索 | ハイライト | ハイライトオフ | ポータル | php spot |
SolrClient::addDocument(PECL solr >= 0.9.2) SolrClient::addDocument — Adds a document to the index 説明
public SolrUpdateResponse SolrClient::addDocument
( SolrInputDocument
$doc
[, bool $overwrite = true
[, int $commitWithin = 0
]] )This method adds a document 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. 例
例1 SolrClient::addDocument() example
<?php 上の例の出力は、 たとえば以下のようになります。 SolrObject Object ( [responseHeader] => SolrObject Object ( [status] => 0 [QTime] => 1 ) )
例2 SolrClient::addDocument() example 2
<?php 上の例の出力は、 たとえば以下のようになります。 SolrObject Object ( [responseHeader] => SolrObject Object ( [status] => 0 [QTime] => 1 ) ) 参考
|
各種マニュアル:
PHPマニュアル |
PEARマニュアル |
Smarty(英語)マニュアル |
PHP-GTKマニュアル |
「SolrClient::addDocument - Adds a document to the index」をGoogle検索
|