Results of 1 - 6 of about 6 for updateResponse (0.001 sec.)
- 例 | PHP 8.3 12631
- 例 PHP で Apache Solr 拡張モジュールを使用する方法の例 例1 ブートストラップ・ファイルの内容 <?php /* Solr サーバーのドメイン名 */ define ( 'SOLR_SERVER_HOSTNAME' , 'solr.example.com' ); /* セキュアなモードで動作するかどうか */ define ( 'SOL
... t (); $doc -> addField ( 'id' , 334455 ); $doc -> addField ( 'cat' , 'Software' ); $doc -> addField ( 'cat' , 'Lucene' ); $updateResponse = $client -> addDocument ( $doc ); print_r ( $updateResponse -> getResponse ()); ?> 上の例の出力は、 たとえば以下のようにな ... = new SolrClient ( $options ); $query = new SolrQuery (); $query -> setTerms ( true ); $query -> setTermsField ( 'cat' ); $updateResponse = $client -> query ( $query ); print_r ( $updateResponse -> getResponse ()); ?> 上の例の出力は、 たとえば以下のようになりま ... rue ); /* $prefix で始まる語だけを返す */ $prefix = 'c' ; $query -> setTermsField ( 'cat' )-> setTermsPrefix ( $prefix ); $updateResponse = $client -> query ( $query ); print_r ( $updateResponse -> getResponse ()); ?> 上の例の出力は、 たとえば以下のようになりま ...
-
https://man.mtool.work/php/8.3/solr.examples.html
- SolrClient::addDocument — Adds a document to the index | PHP 8.3 10291
- SolrClient::addDocument (PECL solr >= 0.9.2) SolrClient::addDocument — Adds a document to the index 説明 public function SolrClient::addDocument ( SolrInputDocument $doc , bool $overwrite = true , int $commitWithin = 0 ): SolrUpdateResponse
... tency requirements, and Solr will automatically do a commit when the oldest add in the buffer is due. 戻り値 Returns a SolrUpdateResponse object or throws an Exception on failure. エラー / 例外 Throws SolrClientException if the client had failed, or there was ... t (); $doc -> addField ( 'id' , 334455 ); $doc -> addField ( 'cat' , 'Software' ); $doc -> addField ( 'cat' , 'Lucene' ); $updateResponse = $client -> addDocument ( $doc ); // you will have to commit changes to be written if you didn't use $commitWithin $clien ... t -> commit (); print_r ( $updateResponse -> getResponse ()); ?> 上の例の出力は、 たとえば以下のようになります。 SolrObject Object ( [responseHeader] => SolrObject ...
-
https://man.mtool.work/php/8.3/solrclient.adddocument.html
- SolrClient::addDocuments — Adds a collection of SolrInputDocument instances to ... 8335
- SolrClient::addDocuments (PECL solr >= 0.9.2) SolrClient::addDocuments — Adds a collection of SolrInputDocument instances to the index 説明 public function SolrClient::addDocuments ( array $docs , bool $overwrite = true , int $commitWithin
... tency requirements, and Solr will automatically do a commit when the oldest add in the buffer is due. 戻り値 Returns a SolrUpdateResponse object or throws an exception on failure. エラー / 例外 Throws SolrClientException if the client had failed, or there was ... ; $doc2 = clone $doc ; $doc2 -> deleteField ( 'id' ); $doc2 -> addField ( 'id' , 334456 ); $docs = array( $doc , $doc2 ); $updateResponse = $client -> addDocuments ( $docs ); // no changes will be written to disk unless $commitWithin is passed or SolrClient::c ... ommit is called print_r ( $updateResponse -> getResponse ()); ?> 上の例の出力は、 たとえば以下のようになります。 SolrObject Object ( [responseHeader] => SolrObject ...
-
https://man.mtool.work/php/8.3/solrclient.adddocuments.html
- SolrInputDocument::addChildDocument — Adds a child document for block indexing ... 8207
- SolrInputDocument::addChildDocument (PECL solr >= 2.3.0) SolrInputDocument::addChildDocument — Adds a child document for block indexing 説明 public function SolrInputDocument::addChildDocument ( SolrInputDocument $child ): void Adds a child
... duct -> addChildDocument ( $medium ); $product -> addChildDocument ( $large ); // add product document block to the index $updateResponse = $client -> addDocument ( $product , true , // overwrite if the document exists 10000 // commit within 10 seconds ); prin ... t_r ( $updateResponse -> getResponse ()); 上の例の出力は、 たとえば以下のようになります。 SolrObject Object ( [responseHeader] => SolrObject Obj ...
-
https://man.mtool.work/php/8.3/solrinputdocument.addchilddocument.html
- SolrInputDocument::addChildDocuments — Adds an array of child documents | PHP 8... 8207
- SolrInputDocument::addChildDocuments (PECL solr >= 2.3.0) SolrInputDocument::addChildDocuments — Adds an array of child documents 説明 public function SolrInputDocument::addChildDocuments ( array &$docs ): void Adds an array of child docume
... = [ $small , $medium , $large ]; $product -> addChildDocuments ( $skus ); // add the product document block to the index $updateResponse = $client -> addDocument ( $product , true , // overwrite if the document exists 10000 // commit within 10 seconds ); prin ... t_r ( $updateResponse -> getResponse ()); 上の例の出力は、 たとえば以下のようになります。 SolrObject Object ( [responseHeader] => SolrObject Obj ...
-
https://man.mtool.work/php/8.3/solrinputdocument.addchilddocuments.html
- SolrClient::__construct — Constructor for the SolrClient object | PHP 8.3 7110
- SolrClient::__construct (PECL solr >= 0.9.2) SolrClient::__construct — Constructor for the SolrClient object 説明 public function SolrClient::__construct ( array $clientOptions ) Constructor for the SolrClient object パラメータ clientOption
... t (); $doc -> addField ( 'id' , 334455 ); $doc -> addField ( 'cat' , 'Software' ); $doc -> addField ( 'cat' , 'Lucene' ); $updateResponse = $client -> addDocument ( $doc ); ?> 上の例の出力は、 たとえば以下のようになります。 参考 SolrClient::getOptions() - Retu ...
-
https://man.mtool.work/php/8.3/solrclient.construct.html
PREV
1
NEXT