Results of 1 - 10 of about 12 for updateResponse (0.002 sec.)
- 例 11886
- « solr_get_version SolrUtils » PHP Manual Solr 例 検索 例 PHP で Apache Solr 拡張モジュールを使用する方法の例 例1 ブートストラップ・ファイルの内容 <?php /* Solr サーバーのドメイン名 */ define ( 'SOLR_SERVER_HOSTNAME' , 'solr.example.com' );
... 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
- 例 11886
- « solr_get_version SolrUtils » PHP Manual Solr 例 検索 例 PHP で Apache Solr 拡張モジュールを使用する方法の例 例1 ブートストラップ・ファイルの内容 <?php /* Solr サーバーのドメイン名 */ define ( 'SOLR_SERVER_HOSTNAME' , 'solr.example.com' );
... 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
- Adds a document to the index 10258
- « SolrClient SolrClient::addDocuments » PHP Manual SolrClient Adds a document to the index 検索 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 This method adds a document to the index. パラメータ doc The SolrInputDocument instance. overwrite Whether to overwrite ex ... 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 ...
-
https://man.mtool.work/php/8.3/solrclient.adddocument.html
- Adds a document to the index 10258
- « SolrClient SolrClient::addDocuments » PHP Manual SolrClient Adds a document to the index 検索 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 This method adds a document to the index. パラメータ doc The SolrInputDocument instance. overwrite Whether to overwrite ex ... 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 ...
-
https://man.mtool.work/php/8.3/solrclient.adddocument.html
- Adds a collection of SolrInputDocument instances to the index 8649
- « SolrClient::addDocument SolrClient::commit » PHP Manual SolrClient Adds a collection of SolrInputDocument instances to the index 検索 SolrClient::addDocuments (PECL solr >= 0.9.2) SolrClient::addDocuments — Adds a collection of SolrInputD
... 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
- Adds a child document for block indexing 8543
- « SolrInputDocument SolrInputDocument::addChildDocuments » PHP Manual SolrInputDocument Adds a child document for block indexing 検索 SolrInputDocument::addChildDocument (PECL solr >= 2.3.0) SolrInputDocument::addChildDocument — Adds a chil
... 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 ... cuments small medium large Adds block content type indexing size inventory addChildDocuments Throws failure options client updateResponse SolrObject solr ...
-
https://man.mtool.work/php/8.3/solrinputdocument.addchilddocument.html
- Adds an array of child documents 8543
- « SolrInputDocument::addChildDocument SolrInputDocument::addField » PHP Manual SolrInputDocument Adds an array of child documents 検索 SolrInputDocument::addChildDocuments (PECL solr >= 2.3.0) SolrInputDocument::addChildDocuments — Adds an
... = [ $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 ... Adds addChildDocuments document content type size inventory addChildDocument docs Throws failure options client skus block updateResponse SolrObject ...
-
https://man.mtool.work/php/8.3/solrinputdocument.addchilddocuments.html
- Adds a collection of SolrInputDocument instances to the index 7676
- « SolrClient::addDocument SolrClient::commit » PHP Manual SolrClient Adds a collection of SolrInputDocument instances to the index 検索 SolrClient::addDocuments (PECL solr >= 0.9.2) SolrClient::addDocuments — Adds a collection of SolrInputD
... 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
- Adds a child document for block indexing 7570
- « SolrInputDocument SolrInputDocument::addChildDocuments » PHP Manual SolrInputDocument Adds a child document for block indexing 検索 SolrInputDocument::addChildDocument (PECL solr >= 2.3.0) SolrInputDocument::addChildDocument — Adds a chil
... 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
- Adds an array of child documents 7570
- « SolrInputDocument::addChildDocument SolrInputDocument::addField » PHP Manual SolrInputDocument Adds an array of child documents 検索 SolrInputDocument::addChildDocuments (PECL solr >= 2.3.0) SolrInputDocument::addChildDocuments — Adds an
... = [ $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