ElasticSearch is one of the most useful tools for getting fast search working on your site. It is essential on E-commerce platforms like Magento and fortunately it only takes a few minutes to get installed.
This guide is written for AlmaLinux 8 so other distros may need a couple of tweaks
Installing Java and ElasticSearch
The first step to installing ElasticSearch will be to get Java running on your server.
yum install java
This will get you the latest version of OpenJDK from the default repositories, and will work fine with ElasticSearch 7.
Next we will need to setup the repository for ElasticSearch.