Difference between revisions of "Elastic search install"
Jump to navigation
Jump to search
(3 intermediate revisions by the same user not shown) | |||
Line 25: | Line 25: | ||
-Xms256m | -Xms256m | ||
-Xmx256m | -Xmx256m | ||
Ensure public access on the same server | |||
sudo nano /etc/elasticsearch/elasticsearch.yml | |||
xpack.security.enabled: false | |||
xpack.security.http.ssl: | |||
enabled: false | |||
xpack.security.transport.ssl: | |||
enabled: false | |||
http.host: 0.0.0.0 | |||
Start service the first time | Start service the first time | ||
Line 33: | Line 43: | ||
= Reindexing existing data = | = Reindexing existing data = | ||
Make sure that the application name is correct in the '''applicationName''' | |||
Data can be reindexed using | Data can be reindexed using | ||
Latest revision as of 16:33, 24 August 2023
Elastic Search guide Linux
ES will work standalone with no other components
ES installation
Install using yum installer
sudo rpm --import https://packages.elastic.co/GPG-KEY-elasticsearch sudo sh -c 'curl https://gist.githubusercontent.com/nl5887/b4a56bfd84501c2b2afb/raw/elasticsearch.repo >> /etc/yum.repos.d/elasticsearch.repo' sudo yum install -y elasticsearch
Alternative: Install with RPM
wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-8.9.1-x86_64.rpm wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-8.9.1-x86_64.rpm.sha512 shasum -a 512 -c elasticsearch-8.9.1-x86_64.rpm.sha512 sudo rpm --install elasticsearch-8.9.1-x86_64.rpm sudo rpm -e elasticsearch-8.9.1-x86_64.rpm
ES Configuration
Ensure service is started automatically
sudo chkconfig elasticsearch on
Reduce memory usage
sudo nano /etc/elasticsearch/jvm.options -Xms256m -Xmx256m
Ensure public access on the same server
sudo nano /etc/elasticsearch/elasticsearch.yml
xpack.security.enabled: false xpack.security.http.ssl: enabled: false xpack.security.transport.ssl: enabled: false http.host: 0.0.0.0
Start service the first time
sudo service elasticsearch start
Validate service is running
curl 'http://localhost:9200/app/_count?pretty&q='y
Reindexing existing data
Make sure that the application name is correct in the applicationName
Data can be reindexed using
Backend > Admin services > Rebuild artifacts > Index blobs
Optionally include the files too
Backend > Admin services > Rebuild artifacts > Index files
File indexer installation
File indexing is handled by a seperate service
- TS indexing service
See Elastic_search_and_OCR#Setting_up_basic_search_service for details
For the file Indexer to work multiple components are required
- ImageMagick
- Tesseract OCR
- GhostScript
See Elastic_search_and_OCR#Adding_OCR_capability for details