From: Bill Erickson Date: Wed, 27 Oct 2021 17:31:58 +0000 (-0400) Subject: LP1844418 ES rebasing X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=05bd30366f3219947d5126040b5b7b73cd82e505;p=working%2FEvergreen.git LP1844418 ES rebasing Signed-off-by: Bill Erickson --- diff --git a/ELASTIC-INSTALL-2021-10-27.md b/ELASTIC-INSTALL-2021-10-27.md new file mode 100644 index 0000000000..ef7cf503a3 --- /dev/null +++ b/ELASTIC-INSTALL-2021-10-27.md @@ -0,0 +1,54 @@ +# ES + +## Pre-Reqs + +``` +sudo apt install libcurl4-openssl-dev libextutils-pkgconfig-perl +sudo cpan Net::Curl::Easy +sudo cpan Search::Elasticsearch::Client::6_0 + +sudo apt install openjdk-11-jre-headless +cd /tmp +sudo dpkg -i elasticsearch-6.8.11.deb +cd /usr/share/elasticsearch/ +sudo bin/elasticsearch-plugin install analysis-icu + +# Optionally edit /etc/elasticsearch/jvm.options and change these: +# -Xms1g +# -Xmx1g +# To: +# -Xms250m +# -Xmx250m +# Since 1G of working memory is overkill for concerto. + +sudo systemctl start elasticsearch +sudo systemctl enable elasticsearch +``` + +## EG setup + +``` +# Checkout EG working branch +# Left up to reader + +# Copy the ES config into place +cd $EVERGREEN/Open-ILS/examples/elastic/ && \ + sudo -u opensrf cp elastic-config.example.xml /openils/conf/elastic-config.xml + +# Install elastic-builder and build Angular client +cd $EVERGREEN/Open-ILS/src/eg2 && npm install && ng build + +# Install and run EG from working branch +# Left up to reader + +# Create, populate, activate the ES index +cd $EVERGREEN/Open-ILS/src/support-scripts && \ + ./elastic-index.pl --index-name take-1 --create-index --populate --activate-index + +# Enable elasticsearch in the catalog (via psql) +psql -U evergreen evergreen +evergreen=# UPDATE config.global_flag SET enabled = true WHERE name = 'elastic.bib_search.enabled'; +``` + + +