LP1844418 ES rebasing
authorBill Erickson <berickxx@gmail.com>
Wed, 27 Oct 2021 17:31:58 +0000 (13:31 -0400)
committerBill Erickson <berickxx@gmail.com>
Mon, 13 Jun 2022 20:02:46 +0000 (16:02 -0400)
Signed-off-by: Bill Erickson <berickxx@gmail.com>
ELASTIC-INSTALL-2021-10-27.md [new file with mode: 0644]

diff --git a/ELASTIC-INSTALL-2021-10-27.md b/ELASTIC-INSTALL-2021-10-27.md
new file mode 100644 (file)
index 0000000..ef7cf50
--- /dev/null
@@ -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';
+```
+
+                                                                               
+