Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

- Install Elasticsearch with Docker (Reference: https://www.elastic.co/guide/en/elasticsearch/reference/7.5/docker.html)
  sudo docker pull docker.elastic.co/elasticsearch/elasticsearch:7.5.2
  # Spin up an Elasticsearch cluster with 3 nodesIncrease max map count:
  sudo sysctl -w vm.max_map_count=262144

# Spin up an Elasticsearch cluster with 3 nodes:

  # Create a file docker-compose.yml with the following contents in your working directory

...

  cd /usr/share/elasticsearch
  # Install plugins one after the other : 
  elasticsearch-plugin install --batch analysis-icu
  elasticsearch-plugin install --batch analysis-kuromoji
  elasticsearch-plugin install --batch analysis-smartcn
  elasticsearch-plugin install --batch analysis-nori
  elasticsearch-plugin install --batch analysis-phonetic

  exit

  # Now do the same thing inside the other two Elasticsearch containers es02  and es03.

Now restart all the 3 elasticsearch containers, otherwise the Plugins will not be enabled !! :

Code Block
sudo docker restart es01
sudo docker restart es02
sudo docker restart es03

  # Note: Plugins will be re-loaded upon restart of the container, i.e. they need to be installed only once per container.

Check, if the plugins have been installed. Log in into one docker container:

Code Block
sudo docker exec -it es01 sh
sh-4.2# cd plugins/
sh-4.2# ls
analysis-icu  analysis-kuromoji  analysis-nori  analysis-phonetic  analysis-smartcn
exit


The following steps only need to be done in the process of upgrading an existing FOLIO installation from "without Elasticsearch (e.g. Juniper)" to "with Elasticsearch (e.g. also Juniper, or Kiwi)".

...