Solr Proxy Console: Another Tool for Your Sitecore Tool Belt .

one_more_tool_sitecore_toolbelt

Have you ever been faced with a challenge when Sitecore search doesn’t work on your server? If the answer to this is yes then you’re in the right place… the tool I’m exploring below will be sure to make your development life easier!

Let’s imagine that something related to Solr search doesn’t work on your server... To find out what is wrong, you would need to use Solr console, your next steps would then be:

  1. Connect to remote desktop on the server, where Sitecore site is hosted
  2. Find ContentSearch.Solr.ServiceBaseAddress Sitecore settings value
  3. Open a browser on a remote desktop session and navigate to Solr URL

This process has some inconveniences:

  1. There is a possibility that you will not have access to the remote server, depending on your company or client policy
  2. If it is your internal company test server, where are hosted many sites, you and your colleagues will “fight” for sessions that are allowed on the server, kicking off each other
  3. Working on a remote desktop has some lag which means it's not as convenient as using your local machine

Last year I probably opened Solr console through a remote server more than 100 times; that’s why I decided to improve this process! Sitecore websites can play the role of the proxy server and transfer requests to real Solr admin panel. So, I have created a Sitecore module.

Here’s how to use it:

  1. Download Sitecore update package from AppVeyor
  2. Install update package using update installation wizard /sitecore/admin/UpdateInstallationWizard.aspx
  3. Open URL of Solr proxy https://yourwebsite/solr

Optional steps, if you want to use HTTP handler instead of injecting into HttpRequestBegin pipeline:

  1. Open Web.config file and add handler configuration>system.webServer>handlers :
    <add verb="*" path="solr/*" type="Foundation.SorlProxy.SolrHandler, Foundation.SorlProxy" name ="SolrHandler" />
  2. Add "/solr" to IgnoreUrlPrefixes Sitecore setting (Sitecore.config Sitecore>Settings>Setting[name="IgnoreUrlPrefixes"])
  3. Disable Foundation.Solr.Proxy.config configuration file

If you want to know more about how this module works or have any issues, look on GitHub repository, where all sources are located.

If you’d like to read more of my helpful developer tips please head over to my author page.

want to speak to one of our experts?

Anton Tishchenko Thumbnail
Anton Tishchenko
Head of Digital Engineering
Anton has worked as a developer since 2007, he is a highly experienced Sitecore developer who previously worked as a Technical Team Lead at Sitecore. Anton's expertise in the Sitecore platform is formidable; he's definitely one of the world's finest Sitecore ninjas and in 2019 he was recognised as the only Sitecore MVP in the Ukraine when he achieved his Technology MVP Status.
Anton Tishchenko Thumbnail

Anton Tishchenko

30 Apr 2019 - 5 minute read
share this

stay in the know, stay ahead.

Get the latest from the agency, including news, events and expert content.
explore services in the article
find out what we can do for you
read some of our case studies