Solr is an open-source search platform, written in Java. Its major features include full-text search, hit highlighting, faceted search, real-time indexing, dynamic clustering, database integration, NoSQL features, and rich document handling.
Download the Solr software package from the website and save it to the opt folder in the operating system.
Enter into the /opt folder.
cd /opt
Download the Solr (version 8) package using the following command line,
sudo wget https://www.apache.org/dyn/closer.lua/lucene/solr/8.11.1/solr-8.11.1.zip?action=download
Rename the Zip file,
sudo mv solr-8.11.1.zip\?action\=download solr-8.11.1.zip
Unzip the package,
sudo unzip solr-8.11.1.zip
Rename Solr directory
sudo mv solr-8.11.1 solr
Downloaded Solr ZIP files not required, delete it,
sudo rm solr-8.11.1.zip
Apply the following command to check Solr directory available at /opt
ls
Change the folder permission to Dspace user,
sudo chown -R dspace:dspace solr
Check whether the folder permission changed or not.
ls -la
Login to the dspace user account to start Solr.
su dspace
Start Solr by applying the command,
/opt/solr/bin/solr start