Message-ID: <46975263.3844.1485855555280.JavaMail.confluence@ip-10-127-227-164> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_3843_1204679800.1485855555280" ------=_Part_3843_1204679800.1485855555280 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html ElasticSearch Bundle

ElasticSearch Bundle

=20
=20
=20
=20

EXPERIMENTAL

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 "de= v-master" version of eZ Platform, and not in any version of eZ Publish Plat= form 5.x.

Given it is experimental, it is currently not professionally supported

 

How to use= ElasticSearch Search engine

Step 1: Enabling Bundle=

First, activate the Elasticsearch Search Engine Bundle (eZ\Bundle\E= zPublishElasticsearchSearchEngineBundle\EzPublishElasticsearchSearchEngineB= undle) in your app/AppKernel.php class file.

Step 2: Configuring = Bundle

Then configure your search engine in config.yml

Example:

 

config.yml
=20
ez_search_engine_elasticsearch:
    default_connection: es_connection_name
    connections:
        es_connection_name:
            server: http://localhost:9200
            index_name: ezpublish
            document_type_name:
                content: content
                location: location
=20

 

For further information on the ElasticSearch integration in eZ Platform,= find the default configuration&= nbsp;and mappings for Content and Lo= cation type documents (Note: Content/Location modeling will most likely= be simplified in the future, like in the Solr search engine bundle).<= /p>

 

Step 3: Configur= ing repository

The following is an example of c= onfiguring the ElasticSearch Search Engine, where the connection name is same as in example above, and engine is set to be  <= code>elasticsearch:

 

 

ezplatform.yml
=20
ezpublish:
    repositories:
        main:
            storage:
                engine: legacy
                connection: default
            search:
                engine: elasticsearch
                connection: es_connection_name
=20

 

Step 4: Run CLI = indexing command

Last step is to execute initial indexation of data:

=20
php app/console ezplatform:elasticsearch_create_index
=20

 

 

=20
=20
=20
=20

In this topic:

=20
=20
=20
------=_Part_3843_1204679800.1485855555280--