Elasticsearch is a powerful and versatile open-source search and analytics engine that excels at handling large volumes of data and providing fast, real-time search capabilities. It is built on top of the Lucene library and offers distributed architecture, allowing for horizontal scalability and fault tolerance. Elasticsearch supports full-text search, enabling features like fuzzy search, autocomplete, filtering, and relevance scoring. It is document-oriented and schema-free, making it easy to store, retrieve, and update JSON documents. With its near real-time capabilities, Elasticsearch is widely used in various applications, ranging from e-commerce platforms and content management systems to log analysis and monitoring systems, providing efficient and scalable search and analytics functionalities.
Elasticsearch is often used as a search engine and indexing solution within the Magento e-commerce platform, providing enhanced search functionality and improved performance for product search, filtering, and catalog browsing. Elasticsearch requires root to install and therefore is only available on our VPS and dedicated hosting plans. Elasticsearch has high memory requirements and is not recommended for hosting with less than 8GB of memory. If the server does not have enough memory, Elasticsearch may fail to start or may crash.
Related Article
Download and Install
IMPORTANT: This solution will require root access. If this needs to be obtained, follow the guide on requesting root access.
CAUTION: Please be aware that the installation of Elasticsearch is the extent of support that will be provided by Technical Support without purchased Managed Hosting time.
- SSH into the server as root
-
Download the Elasticsearch PGP key with
rpm --import https://artifacts.elastic.co/GPG-KEY-elasticsearch - Create an Elasticsearch repository
- Create and edit the repo file
/etc/yum.repos.d/elasticsearch.repousing your preferred text editor
EXAMPLE:nano /etc/yum.repos.d/elasticsearch.repo -
Add the following to the file
[elasticsearch] name=Elasticsearch repository for 8.x packages baseurl=https://artifacts.elastic.co/packages/8.x/yum gpgcheck=1 gpgkey=https://artifacts.elastic.co/GPG-KEY-elasticsearch enabled=0 autorefresh=1 type=rpm-md - Save and exit
NOTE: If using nano, exit the file with <Ctrl+X> and agree to save the changes using <Y>.
- Create and edit the repo file
-
Install Elasticsearch with
yum install --enablerepo=elasticsearch elasticsearch -
Enable the service by running
systemctl enable elasticsearch.service -
Start the service by running
systemctl start elasticsearch.serviceCAUTION: If the service fails to start, the server may not have enough memory to start Elasticsearch.
-
Check the status of the service by running
systemctl status elasticsearch.service - Open port 9200 in the firewall
-
Test the installation
curl -X GET localhost:9200
Comments
0 comments
Article is closed for comments.