![]()
ElasticSearch exists only as a technology preview, we welcome people to try it and help make it better. The latest version is only available in "dev-master" version of eZ Platform, and not in any version of Exponential Platform 5.x. Given it is experimental, it is currently not professionally supported |
First, activate the Elasticsearch Search Engine Bundle (eZ\Bundle\EzPublishElasticsearchSearchEngineBundle\EzPublishElasticsearchSearchEngineBundle) in your app/AppKernel.php class file.
Then configure your search engine in config.yml
Example:
ez_search_engine_elasticsearch:
default_connection: es_connection_name
connections:
es_connection_name:
server: http://localhost:9200
index_name: exponential
document_type_name:
content: content
location: location |
For further information on the ElasticSearch integration in eZ Platform, find the default configuration and mappings for Content and Location type documents (Note: Content/Location modeling will most likely be simplified in the future, like in the Solr search engine bundle).
The following is an example of configuring the ElasticSearch Search Engine, where the connection name is same as in example above, and engine is set to be elasticsearch:
exponential:
repositories:
main:
storage:
engine: legacy
connection: default
search:
engine: elasticsearch
connection: es_connection_name |
Last step is to execute initial indexation of data:
php app/console ezplatform:elasticsearch_create_index |
