« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 10 of about 370 for Solr (0.002 sec.)
例 | PHP 8.3 10255
例 PHP で Apache Solr 拡張モジュールを使用する方法の例 例1 ブートストラップ・ファイルの内容 <?php /* Solr サーバーのドメイン名 */ define ( 'SOLR_SERVER_HOSTNAME' , 'solr.example.com' ); /* セキュアなモードで動作するかどうか */ define ( 'SOLR ... R_SECURE' , true ); /* 接続する HTTP ポート */ define ( 'SOLR_SERVER_PORT' , (( SOLR_SECURE ) ? 8443 : 8983 )); /* HTTP Basic 認証ユーザー名 */ define ( 'SOLR_SERVER_USERNAME' , 'admin ... ' ); /* HTTP Basic 認証パスワード */ define ( 'SOLR_SERVER_PASSWORD' , 'changeit' ); /* HTTP 接続タイムアウト */ /* HTTP データ転送動作に許される、秒単位の最大時間。既定値は3 ... 0秒 */ define ( 'SOLR_SERVER_TIMEOUT' , 10 ); /* PEM 形式のプライベートキーとプライベート証明書に対するファイル名(その順序で連結されます) */ d ...
https://man.mtool.work/php/8.3/solr.examples.html
solr_get_version — Apache Solr 拡張モジュールの現行バージョンを返す | PHP 8.3 8854
solr_get_version (PECL solr >= 0.9.1) solr_get_version — Apache Solr 拡張モジュールの現行バージョンを返す 説明 function solr_get_version (): string この関数は、拡張モジュールの現行バージョンを文字列として返します。 パラメータ この関数にはパ ... りません。 戻り値 成功時に文字列、失敗時に false を返します。 エラー / 例外 この関数はエラーや例外をスローしません。 例 例1 solr_get_version() の例 <?php $solr_version = solr_get_version (); print $solr_version ; ?> 上の例の出力は、 たとえば以下のよう ... になります。 0.9.6 参考 SolrUtils::getSolrVersion() - Solr 拡張モジュールの現行バージョンを返す 他のマニュアルの関連ページ Django deployment DuckDB Imp ...
https://man.mtool.work/php/8.3/function.solr-get-version.html
SolrClient::addDocument — Adds a document to the index | PHP 8.3 8854
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 existing document or not. If false there will be duplicates (several ... documents with the same ID). 警告 PECL Solr < 2.0 $allowDups was used instead of $overwrite, which does the same functionality with exact opposite bool flag. $allowDu ... e same as $overwrite = true commitWithin Number of milliseconds within which to auto commit this document. Available since Solr 1.4 . Default (0) means disabled. When this value specified, it leaves the control of when to do the commit to Solr itself ...
https://man.mtool.work/php/8.3/solrclient.adddocument.html
SolrUtils::digestXmlResponse — Parses an response XML string into a SolrObject ... 8466
SolrUtils::digestXmlResponse (PECL solr >= 0.9.2) SolrUtils::digestXmlResponse — Parses an response XML string into a SolrObject 説明 public static function SolrUtils::digestXmlResponse ( string $xmlresponse , int $parse_mode = 0 ): SolrObj ... ect This method parses an response XML string from the Apache Solr server into a SolrObject. It throws a SolrException if there was an error. パラメータ xmlresponse The XML response string ... from the Solr server. parse_mode Use SolrResponse::PARSE_SOLR_OBJ or SolrResponse::PARSE_SOLR_DOC 戻り値 Returns the SolrObject represen ... ting the XML response. If the parse_mode parameter is set to SolrResponse::PARSE_SOLR_OBJ Solr documents will be parses as SolrObject instances. If it is set to SolrResponse::PARSE_SOLR_DO ...
https://man.mtool.work/php/8.3/solrutils.digestxmlresponse.html
SolrClient::ping — Checks if Solr server is still up | PHP 8.3 8299
SolrClient::ping (PECL solr >= 0.9.2) SolrClient::ping — Checks if Solr server is still up 説明 public function SolrClient::ping (): SolrPingResponse Checks if the Solr server is still alive. Sends a HEAD request to the Apache Solr server. ... パラメータ この関数にはパラメータはありません。 戻り値 Returns a SolrPingResponse object on success and throws an exception on failure. エラー / 例外 Throws SolrClientException if the client h ... ad failed, or there was a connection issue. Throws SolrServerException if the Solr Server had failed to satisfy the request. 例 例1 SolrClient::ping() example <?php $options = ar ... ray ( 'hostname' => SOLR_SERVER_HOSTNAME , 'login' => SOLR_SERVER_USERNAME , 'password' => SOLR_SERVER_PASSWORD , 'port' => SOLR_SERVER_PORT , ); $ ...
https://man.mtool.work/php/8.3/solrclient.ping.html
SolrClient::getById — Get Document By Id. Utilizes Solr Realtime Get (RTG) | PH... 7955
SolrClient::getById (PECL solr >= 2.2.0) SolrClient::getById — Get Document By Id. Utilizes Solr Realtime Get (RTG) 説明 public function SolrClient::getById ( string $id ): SolrQueryResponse Get Document By Id. Utilizes Solr Realtime Get (R ... TG). パラメータ id Document ID 戻り値 SolrQueryResponse 例 例1 SolrClient::getById() example <?php include "bootstrap.php" ; $options = array ( 'hostname' => SOLR_SE ... RVER_HOSTNAME , 'login' => SOLR_SERVER_USERNAME , 'password' => SOLR_SERVER_PASSWORD , 'port' => SOLR_SERVER_PORT , 'path' => SOLR_SERVER_PATH ); $client ... = new SolrClient ( $options ); $response = $client -> getById ( 'GB18030TEST' ); print_r ( $response -> getResponse ()); ?> 上の例の出 ...
https://man.mtool.work/php/8.3/solrclient.getbyid.html
SolrResponse クラス | PHP 8.3 7665
SolrResponse クラス (PECL solr >= 0.9.2) はじめに Solr サーバーからのレスポンスを表現 クラス概要 abstract class SolrResponse { /* 定数 */ const int PARSE_SOLR_OBJ = 0 ; const int PARSE_SOLR_DOC = 1 ; /* プロパティ */ protected int $ http_st ... public function getRawResponseHeaders (): string public function getRequestUrl (): string public function getResponse (): SolrObject public function setParseMode ( int $parser_mode = 0 ): bool public function success (): bool } プロパティ http_statu ... s レスポンスの HTTP ステータス parser_mode Solr 文書を SolrObject または SolrDocument インスタンスとしてパースするかどうか success リクエスト中にエラーがあったか http_sta ... ers リクエスト中に送信される生のヘッダ文字列 http_raw_request サーバーに送信される生のリクエスト http_raw_response_headers Solr サーバーからのレスポンスヘッダ http_raw_response サーバーからのレスポンスメッセージ http_digested_response PHP シリアライズ ...
https://man.mtool.work/php/8.3/class.solrresponse.html
SolrClient::addDocuments — Adds a collection of SolrInputDocument instances to ... 7577
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 ... = 0 ): void Adds a collection of documents to the index. パラメータ docs An array containing the collection of SolrInputDocument instances. This array must be an actual variable. overwrite Whether to overwrite existing documents or not. I ... f false there will be duplicates (several documents with the same ID). 警告 PECL Solr < 2.0 $allowDups was used instead of $overwrite, which does the same functionality with exact opposite bool flag. $allowDu ... e same as $overwrite = true commitWithin Number of milliseconds within which to auto commit this document. Available since Solr 1.4 . Default (0) means disabled. When this value specified, it leaves the control of when to do the commit to Solr itself ...
https://man.mtool.work/php/8.3/solrclient.adddocuments.html
SolrClient::getByIds — Get Documents by their Ids. Utilizes Solr Realtime Get (... 7154
SolrClient::getByIds (PECL solr >= 2.2.0) SolrClient::getByIds — Get Documents by their Ids. Utilizes Solr Realtime Get (RTG) 説明 public function SolrClient::getByIds ( array $ids ): SolrQueryResponse Get Documents by their Ids. Utilizes Solr ... olr Realtime Get (RTG). パラメータ ids Document ids 戻り値 SolrQueryResponse 例 例1 SolrClient::getByIds() example <?php include "bootstrap.php" ; $options = array ( 'hostname' => SOLR_S ... ERVER_HOSTNAME , 'login' => SOLR_SERVER_USERNAME , 'password' => SOLR_SERVER_PASSWORD , 'port' => SOLR_SERVER_PORT , 'path' => SOLR_SERVER_PATH ); $client ... = new SolrClient ( $options ); $response = $client -> getByIds ([ 'GB18030TEST' , '6H500F0' ]); print_r ( $response -> getResponse () ...
https://man.mtool.work/php/8.3/solrclient.getbyids.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 ... owing keys : - secure (Boolean value indicating whether or not to connect in secure mode) - hostname (The hostname for the Solr server) - port (The port number) - path (The path to solr) - wt (The name of the response writer e.g. xml, json) - login ( ... arate ssl_key file The ssl_keypassword option is required if the ssl_cert or ssl_key options are set. エラー / 例外 Throws SolrIllegalArgumentException on failure. 例 例1 SolrClient::__construct() example <?php $options = array ( 'hostname' => SOLR_S ... ERVER_HOSTNAME , 'login' => SOLR_SERVER_USERNAME , 'password' => SOLR_SERVER_PASSWORD , 'port' => SOLR_SERVER_PORT , 'path' => SOLR_PATH_TO_SOLR , 'wt' => ...
https://man.mtool.work/php/8.3/solrclient.construct.html
PREV 1 2 3 4 5 6 7 8 9 10 NEXT