Installing Elasticsearch

  Written by The Jahia Team
   Estimated reading time:

To install Elasticsearch:

  1. Unzip the Elasticsearch version that you downloaded earlier and edit the config/elasticsearch.yml file.
    vi config/elasticsearch.yml
  2. Add the following lines to the file.
    transport.tcp.port: 9300
    http.cors.allow-origin: "*"
    http.cors.enabled: true
  3. Specify a unique cluster name for your Elasticsearch instances to avoid conflicts with other Elasticsearch instances on the network. For example, specify ciohybris as shown in the following example.
    cluster.name: ciohybris
  4. Start Elasticsearch.
    ./bin/elasticsearch

Elasticsearch is now running. You can access it at http://localhost:9200 in your web browser.

To be able to browse your index, you should install the ElasticSearch Head Chrome extension.