Awesome
Sitecore.SolrProxy
Abstract:
Tool for easy access to Solr admin console if you have access only to Sitecore CM.
Requirements:
Sitecore 8+ Project is build following Helix principles, but you can use it in any Sitecore project.
Pick version for your Sitecore
Pick latest 1.xxx version if you use Sitecore 8+. Pick latest 2.xxx version if you use Sitecore 9+ or Sitecore 10+.
How to use
- Download latest Sitecore update package from AppVeyor or from Github releases
- Install it using update installation wizard /sitecore/admin/UpdateInstallationWizard.aspx
- Open url of Solr proxy https://yourwebsite/sitecore/shell/solr/ (https://yourwebsite/solr/ if you use version for Sitecore 8+)
Optional steps
By default module injects to HttpRequestBegin pipeline. But you can reconfigure it by registering http handler.
- Open Web.config file and add handler configuration>system.webServer>modules
<add verb="*" path="solr/*" type="Foundation.SorlProxy.SolrHandler, Foundation.SorlProxy" name ="SolrHandler" />
- Add "/solr" to IgnoreUrlPrefixes Sitecore setting (Sitecore.config Sitecore>Settings>Setting[name="IgnoreUrlPrefixes"])
- Disable Foundation.Solr.Proxy.config configuration file
Possible issues
- If nothing happened after installation of package(/sitecore/shell/solr/ url doesn't work), check that App_Config\Include\Foundation\Foundation.Solr.Proxy.config configuration is enabled
- If you get "Too many redirects" then you have conflict with Solr console that requires trailing slash and your rewrite rules that force no trailing slash. Add rule that disable redirects for Solr console:
<rule name="Dont redirect Solr" stopProcessing="true">
<match url="^solr(.*)" />
<action type="None" />
</rule>