Before I begin I am under the assumption SOLR is going to be a diva.👸🏻 Why? I don’t know, guess it’s a gut feeling or a lame attempt to get a laugh. I don’t know what craziness awaits, however, I am pretty sure SOLR won’t request me to alphabetize it’s M&Ms.
SOLR gave me a list of demands that I must complete before it will start working. Those can be found here. Looking over its demands, it appears I need to use the command prompt… awesome…. not really. I dislike the cmd and I avoid it as much as possible. My dislike for the cmd is totally based on my lack of overall knowledge about its syntax and commands and my laziness to learn more. All I know is how to change directories👍🏻 👏🏻, and that’s it, everything else requires Google searches.
Disclaimer: Any errors I encounter involving the cmd will be my fault and probably for a dumb reason. The documentation is most likely accurate.
The SOLR Installation Fun Begins
In order to appease the SOLR, the documentation states I must do the following:
- Download and Extract:
Download SOLR’s files and extract them into a convenient location. Surprisingly, the documentation says SOLR doesn’t mind if it’s extracted to the root directory. Good, cause that is where it was going regardless. 😉
If you would like to set it up as a service, this link may help.
- Run the Server using the Command Prompt:
Open the command prompt and using its magical commands, navigate over to the SOLR directory and then type “bin/solr.cmd start”…. 😱 OMG, ERROR 😱!
An error so soon? I’m not surprised. First issue: “bin/solr.cmd start” isn’t valid, the error states: ‘bin’ is not recognized as an internal or external command, operable program or batch file. Duh, bin is a directory not a command. Shenanigans! I guess I need to change my directory to bin and type in solr.cmd start… 💣💥,
ERROR #2. Ugh, the error relates to Java… I dislike Java. It runs perfectly fine for some apps and other apps throw fits about it. Hey Java, you and the apps are on the same team, work together! Remember Flash? I think you should find where it went and join it.
- ERROR: The system was unable to find the specified registry key or value.
- Please set the JAVA_HOME environment variable to the path where you installed Java 1.8+
Sorry, FALSE ALARM… Turns out, Java’s directory is empty… odd, I don’t recall uninstalling Java.
IMPORTANT LESSON: Make sure Java is installed before blogging about the dislike of that platform, wishing it followed Flash to the great beyond and the mild aggravation caused by errors caused by the lack of Java on the computer. Hahaha. That was hilarious.
- Make sure Java is installed prior to Step 2 above. If Java is nowhere to be found, install it.
- Using the cmd, type the following: cd c:\solr-6.6.0\bin
- Using the cmd, type the following: solr.cmd start
Two messages should appear if everything is Kosher. Those are:
- Waiting up to 30 to see Solr running on port 8983
- Started Solr server on port 8983. Happy searching!
Well thank you cmd prompt for wishing me “Happy searching!”, that was a very nice of you. Happy commanding to you!
Honestly, this was a lot easier than I expected aside from the ‘bin’ issue and the lack of Java on my machine. I know I’ve needed Java to access a client’s VPN recently so I did have it installed. I also had no reason to uninstall it. This mystery will likely go unsolved.
Next post will chronicle “Setting up SOLR for use with Sitecore”. I see that going smoothly and without issue or error.
Hope this post made you laugh or at least giggle slightly. Thank you for reading.
Do you enjoy my oddly themed blogs and wish you had access to even more of me and my ideas? Good news, you’re in luck!
If 140 characters is your thing, follow me on Twitter.
If you hate reading and watching Sitecore videos entertains you, head over to my YouTube channel! Sometimes I entertain, sometime I provide useful Sitecore information and sometimes I can do both in the same video.
I can also be found hanging out on the Sitecore channels on Slack, I like it, although it occasionally triggers AOL chat room flashbacks from the olden days.
You can also find me adding content on LinkedIn and on Reddit.