Setup ElasticSearch

In this section is described how to setup ElasticSearch to be used in GeoNetwork to store the search/content statistics:

$ cd /opt/elasticsearch/bin
$ ./elasticsearch &

Note

Usually you’ll want to configure ElasticSearch to run when the server is startup, this is not covered in this guide.

$ cd /tmp
$ curl -O https://raw.githubusercontent.com/geonetwork/core-geonetwork/3.4.x/es/config/features.json
$ curl -X PUT http://localhost:9200/features -d @features.json
$ curl -O https://raw.githubusercontent.com/geonetwork/core-geonetwork/3.4.x/es/config/records.json
$ curl -X PUT http://localhost:9200/records -d @records.json
$ curl -O https://raw.githubusercontent.com/geonetwork/core-geonetwork/3.4.x/es/config/searchlogs.json
$ curl -X PUT http://localhost:9200/searchlogs -d @searchlogs.json