Skip to main content
Version: Next

Elasticsearch Client Setup

info

This bundle requires Elasticsearch 8.x. The bundled pimcore/elasticsearch-client requires elasticsearch/elasticsearch ^8.0, which does not support Elasticsearch 9.

Set up Elasticsearch via the Pimcore Elasticsearch Client bundle. The configuration has two parts:

  1. Configuring an Elasticsearch client.
  2. Define the client to be used by simple rest API.
# Configuring an Elasticsearch client
pimcore_elasticsearch_client:
es_clients:
default:
hosts: ['elastic:9200']
username: 'elastic'
password: 'somethingsecret'
logger_channel: 'pimcore.elasticsearch'

# Define the client to be used by simple rest API
pimcore_data_hub_simple_rest:
client_name: default # default is default value here, just need to be specified when other client should be used.
client_type: 'elasticsearch' # default is 'openSearch'

If nothing is configured, a default client connecting to localhost:9200 is used.

For further client configuration, see the Pimcore Elasticsearch Client documentation.