Movatterモバイル変換


[0]ホーム

URL:


Loading
  1. Elastic Docs/
  2. Reference/
  3. Elasticsearch/
  4. Clients/
  5. PHP/
  6. Configuration

HTTP Meta Data

By default, the client sends some meta data about the HTTP connection using custom headers.

You can disable or enable it using the following methods:

The client sends ax-elastic-client-meta header by default. This header is used to collect meta data about the versions of the components used by the client. For instance, a value ofx-elastic-client-meta can bees=8.0.0-s,php=8.0.0,t=8.0.0-s,a=0,gu=7.4.2, where each value is the version ofes=Elasticsearch,tis the transport version (same of client),a is asyncronouts (0=falseby default) andgu=Guzzle`.

If you would like to disable it you can use thesetElasticMetaHeader() method, as follows:

$client = Elasticsearch\ClientBuilder::create()    ->setElasticMetaHeader(false)    ->build();

[8]ページ先頭

©2009-2026 Movatter.jp