« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 10 of about 17 for addField (0.001 sec.)
SolrInputDocument::addChildDocument — Adds a child document for block indexing ... 12914
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 ... th' => SOLR_SERVER_STORE_PATH , ); $client = new SolrClient ( $options ); $product = new SolrInputDocument (); $product -> addField ( 'id' , 'P-BLACK' ); $product -> addField ( 'cat' , 'tshirt' ); $product -> addField ( 'cat' , 'polo' ); $product -> addF ... ield ( 'content_type' , 'product' ); $small = new SolrInputDocument (); $small -> addField ( 'id' , 'TS-BLK-S' ); $small -> addField ( 'content_type' , 'sku' ); $small -> addField ( 'size' , 'S' ); $small -> addFi ... eld ( 'inventory' , 100 ); $medium = new SolrInputDocument (); $medium -> addField ( 'id' , 'TS-BLK-M' ); $medium -> addField ( 'content_type' , 'sku' ); $medium -> addField ( 'size' , 'M' ); $medium -> ad ...
https://man.mtool.work/php/8.3/solrinputdocument.addchilddocument.html
SolrInputDocument::addChildDocuments — Adds an array of child documents | PHP 8... 12914
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 ... th' => SOLR_SERVER_STORE_PATH , ); $client = new SolrClient ( $options ); $product = new SolrInputDocument (); $product -> addField ( 'id' , 'P-BLACK' ); $product -> addField ( 'cat' , 'tshirt' ); $product -> addField ( 'cat' , 'polo' ); $product -> addF ... ield ( 'content_type' , 'product' ); $small = new SolrInputDocument (); $small -> addField ( 'id' , 'TS-BLK-S' ); $small -> addField ( 'content_type' , 'sku' ); $small -> addField ( 'size' , 'S' ); $small -> addFi ... eld ( 'inventory' , 100 ); $medium = new SolrInputDocument (); $medium -> addField ( 'id' , 'TS-BLK-M' ); $medium -> addField ( 'content_type' , 'sku' ); $medium -> addField ( 'size' , 'M' ); $medium -> ad ...
https://man.mtool.work/php/8.3/solrinputdocument.addchilddocuments.html
SolrClient::addDocument — Adds a document to the index | PHP 8.3 9138
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 ... PASSWORD , 'port' => SOLR_SERVER_PORT , ); $client = new SolrClient ( $options ); $doc = new SolrInputDocument (); $doc -> addField ( 'id' , 334455 ); $doc -> addField ( 'cat' , 'Software' ); $doc -> addField ( 'cat' , 'Lucene' ); $updateResponse = $clie ... PASSWORD , 'port' => SOLR_SERVER_PORT , ); $client = new SolrClient ( $options ); $doc = new SolrInputDocument (); $doc -> addField ( 'id' , 334455 ); $doc -> addField ( 'cat' , 'Software' ); $doc -> addField ( 'cat' , 'Lucene' ); // No need to call comm ...
https://man.mtool.work/php/8.3/solrclient.adddocument.html
SolrQuery::addField — Specifies which fields to return in the result | PHP 8.3 8966
SolrQuery::addField (PECL solr >= 0.9.2) SolrQuery::addField — Specifies which fields to return in the result 説明 public function SolrQuery::addField ( string $field ): SolrQuery This method is used to used to specify a set of fields to re ...
https://man.mtool.work/php/8.3/solrquery.addfield.html
SolrDocument::addField — 文書にフィールドを追加 | PHP 8.3 8914
SolrDocument::addField (PECL solr >= 0.9.2) SolrDocument::addField — 文書にフィールドを追加 説明 public function SolrDocument::addField ( string $fieldName , string $fieldValue ): bool このメソッドは、SolrDocument インスタンスにフィールドを ...
https://man.mtool.work/php/8.3/solrdocument.addfield.html
例 | PHP 8.3 8776
例 PHP で Apache Solr 拡張モジュールを使用する方法の例 例1 ブートストラップ・ファイルの内容 <?php /* Solr サーバーのドメイン名 */ define ( 'SOLR_SERVER_HOSTNAME' , 'solr.example.com' ); /* セキュアなモードで動作するかどうか */ define ( 'SOL ... PASSWORD , 'port' => SOLR_SERVER_PORT , ); $client = new SolrClient ( $options ); $doc = new SolrInputDocument (); $doc -> addField ( 'id' , 334455 ); $doc -> addField ( 'cat' , 'Software' ); $doc -> addField ( 'cat' , 'Lucene' ); $updateResponse = $clie ... 書を他の文書にマージ <?php include "bootstrap.php" ; $doc = new SolrDocument (); $second_doc = new SolrDocument (); $doc -> addField ( 'id' , 1123 ); $doc -> features = "PHP Client Side" ; $doc -> features = "Fast development cycles" ; $doc [ 'cat' ] = 'S ... oftware' ; $doc [ 'cat' ] = 'Custom Search' ; $doc -> cat = 'Information Technology' ; $second_doc -> addField ( 'cat' , 'Lucene Search' ); $second_doc -> merge ( $doc , true ); print_r ( $second_doc -> toArray ()); ?> 上の例の出力は ...
https://man.mtool.work/php/8.3/solr.examples.html
SolrClient::addDocuments — Adds a collection of SolrInputDocument instances to ... 8535
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 ... PASSWORD , 'port' => SOLR_SERVER_PORT , ); $client = new SolrClient ( $options ); $doc = new SolrInputDocument (); $doc -> addField ( 'id' , 334455 ); $doc -> addField ( 'cat' , 'Software' ); $doc -> addField ( 'cat' , 'Lucene' ); $doc2 = clone $doc ; $d ... oc2 -> deleteField ( 'id' ); $doc2 -> addField ( 'id' , 334456 ); $docs = array( $doc , $doc2 ); $updateResponse = $client -> addDocuments ( $docs ); // no changes will ...
https://man.mtool.work/php/8.3/solrclient.adddocuments.html
SolrClient::query — Sends a query to the server | PHP 8.3 8535
SolrClient::query (PECL solr >= 0.9.2) SolrClient::query — Sends a query to the server 説明 public function SolrClient::query ( SolrParams $query ): SolrQueryResponse Sends a query to the server. パラメータ query A SolrParams object. It is ... $query = new SolrQuery (); $query -> setQuery ( 'lucene' ); $query -> setStart ( 0 ); $query -> setRows ( 50 ); $query -> addField ( 'cat' )-> addField ( 'features' )-> addField ( 'id' )-> addField ( 'timestamp' ); $query_response = $client -> query ( $ ...
https://man.mtool.work/php/8.3/solrclient.query.html
SolrInputDocument::addField — 文書にフィールドを追加 | PHP 8.3 8500
SolrInputDocument::addField (PECL solr >= 0.9.2) SolrInputDocument::addField — 文書にフィールドを追加 説明 public function SolrInputDocument::addField ( string $fieldName , string $fieldValue , float $fieldBoostValue = 0.0 ): bool 複数値の項 ...
https://man.mtool.work/php/8.3/solrinputdocument.addfield.html
SolrClient::__construct — Constructor for the SolrClient object | PHP 8.3 8069
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 ... => SOLR_PATH_TO_SOLR , 'wt' => 'xml' , ); $client = new SolrClient ( $options ); $doc = new SolrInputDocument (); $doc -> addField ( 'id' , 334455 ); $doc -> addField ( 'cat' , 'Software' ); $doc -> addField ( 'cat' , 'Lucene' ); $updateResponse = $clie ...
https://man.mtool.work/php/8.3/solrclient.construct.html
PREV 1 2 NEXT