Skip to main content
Version: 2024.2

Elasticsearch configuration

The ElasticsearchAdapter needs an Elasticsearch cluster to work.

Elasticsearch client configuration takes place via Pimcore Elasticsearch Client Bundle

# Configure an Elasticsearch client 
pimcore_elasticsearch_client:
es_clients:
default:
hosts: ['elastic:9200']
username: 'elastic'
password: 'somethingsecret'
logger_channel: 'pimcore.elasicsearch'

Pimcore Elasticsearch Client Bundle registers symfony services for each configured Elasticsearch client which can be used for data sources (see above) and event trackers.

Configuration above creates a default client which is registered as service pimcore.elasticsearch_client.default.

For further configuration options (like authentication) have a look at Pimcore Elasticsearch Client Bundle.