« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 8 of about 8 for addDocument (0.001 sec.)
SolrClient::addDocument — Adds a document to the index | PHP 8.3 13718
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 ... as a connection issue. Throws SolrServerException if the Solr Server had failed to process the request. 例 例1 SolrClient::addDocument() example <?php $options = array ( 'hostname' => SOLR_SERVER_HOSTNAME , 'login' => SOLR_SERVER_USERNAME , 'password' => SO ... ' , 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 $client -> commit (); print_r ( ... ようになります。 SolrObject Object ( [responseHeader] => SolrObject Object ( [status] => 0 [QTime] => 1 ) ) 例2 SolrClient::addDocument() example 2 <?php $options = array ( 'hostname' => SOLR_SERVER_HOSTNAME , 'login' => SOLR_SERVER_USERNAME , 'password' => ...
https://man.mtool.work/php/8.3/solrclient.adddocument.html
The SolrClient class | PHP 8.3 9055
The SolrClient class (PECL solr >= 0.9.2) はじめに Used to send requests to a Solr server. Currently, cloning and serialization of SolrClient instances is not supported. クラス概要 final class SolrClient { /* 定数 */ const int SEARCH_SERVLE ... EFAULT_SYSTEM_SERVLET = admin/system ; /* メソッド */ public function __construct ( array $clientOptions ) public function addDocument ( SolrInputDocument $doc , bool $overwrite = true , int $commitWithin = 0 ): SolrUpdateResponse public function addDocumen ... LT_SYSTEM_SERVLET This is the initial value for the system servlet used to obtain Solr Server information 目次 SolrClient::addDocument — Adds a document to the index SolrClient::addDocuments — Adds a collection of SolrInputDocument instances to the index So ...
https://man.mtool.work/php/8.3/class.solrclient.html
SolrClient::addDocuments — Adds a collection of SolrInputDocument instances to ... 8440
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 ... as a connection issue. Throws SolrServerException if the Solr Server had failed to process the request. 例 例1 SolrClient::addDocuments() example <?php $options = array ( 'hostname' => SOLR_SERVER_HOSTNAME , 'login' => SOLR_SERVER_USERNAME , 'password' => S ... -> 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::commit is called print_r ( ... ようになります。 SolrObject Object ( [responseHeader] => SolrObject Object ( [status] => 0 [QTime] => 2 ) ) 参考 SolrClient::addDocument() - Adds a document to the index SolrClient::commit() - Finalizes all add/deletes made to the index 他のマニュアルの関連ペ ...
https://man.mtool.work/php/8.3/solrclient.adddocuments.html
SolrClient::__construct — Constructor for the SolrClient object | PHP 8.3 8440
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 ... ' , 334455 ); $doc -> addField ( 'cat' , 'Software' ); $doc -> addField ( 'cat' , 'Lucene' ); $updateResponse = $client -> addDocument ( $doc ); ?> 上の例の出力は、 たとえば以下のようになります。 参考 SolrClient::getOptions() - Returns the client options se ...
https://man.mtool.work/php/8.3/solrclient.construct.html
SolrInputDocument::addChildDocument — Adds a child document for block indexing ... 8440
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 ... 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 ); print_r ( $updateResponse -> ...
https://man.mtool.work/php/8.3/solrinputdocument.addchilddocument.html
SolrInputDocument::addChildDocuments — Adds an array of child documents | PHP 8... 8440
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 ... ge ]; $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 ); print_r ( $updateResponse -> ...
https://man.mtool.work/php/8.3/solrinputdocument.addchilddocuments.html
Apache Solr | PHP 8.3 7844
Apache Solr はじめに Solr 拡張モジュールにより、PHP で Apache Solr サーバーと効果的に通信できます。 Solr 拡張モジュールは、PHP 開発者が Solr サーバーのインスタンスと効果的に通信できるようにする、とても速くて軽量で、豊富な機能を持つライブラリ ... ィに対して値を設定 SolrObject::offsetUnset — プロパティに対して値の設定を解除 SolrClient — The SolrClient class SolrClient::addDocument — Adds a document to the index SolrClient::addDocuments — Adds a collection of SolrInputDocument instances to the index So ...
https://man.mtool.work/php/8.3/book.solr.html
例 | PHP 8.3 7844
例 PHP で Apache Solr 拡張モジュールを使用する方法の例 例1 ブートストラップ・ファイルの内容 <?php /* Solr サーバーのドメイン名 */ define ( 'SOLR_SERVER_HOSTNAME' , 'solr.example.com' ); /* セキュアなモードで動作するかどうか */ define ( 'SOL ... ' , 334455 ); $doc -> addField ( 'cat' , 'Software' ); $doc -> addField ( 'cat' , 'Lucene' ); $updateResponse = $client -> addDocument ( $doc ); print_r ( $updateResponse -> getResponse ()); ?> 上の例の出力は、 たとえば以下のようになります。 SolrObject Obje ...
https://man.mtool.work/php/8.3/solr.examples.html
PREV 1 NEXT