Solr overview & Setup
Solr is an open source software developed by Apache software foundation
It is a search server which uses the Apache Lucene in the backend and provides a Rest API which can be called from any language or the platform to get the indexed data or the search results.
Apache Lucene is the java library which provides indexing and search functionality.
Solr and Lucene both are managed by Apache.
Applications can use this search platform called solr to implement faster searching in their site.
Download and setup the Solr server
We can download solr from the below url
Click here to download Solr
Click on highlighed link in the above image
Select solr zip folder from this page for downloading.
Once download completes,Unzip the zipped folder
We must have Java installed on the machine to work with Solr(Because Solr is developed in Java)
So if not please install JDK 8 from the below url
How to start solr server ?
Open command prompt and go to the bin folder of solr unzipped directory in your system
if you are in any other drive, switch to the drive where solr is downloaded using the command Drive: example E: to switch to E drive.
In my system , I have Solr downloaded in E drive.
Run the below command
Now it displays that solr server is started as below
We can also verify it by accessing it in the web using below url
How to stop Solr server ?
Run the below command to stop it
solr stop –p 8983
solr stop -all
Now Solr server is stopped
Now try to access the below url
It will say, cannot be connected as solr server is stopped.
Know Solr status
We can also run the below command to get the status of Solr server
It will display the following message which indicates that Solr is stopped.
No running Solr nodes found.