Skip to content

Ehab ElGindy

sitecore blog

  • About
Home > 2014 > December
Published December 16, 2014 by ehabelgindy

Sitecore Spatial Search using Solr

Share Button

Solr is a very powerful search provider that covers almost every feature that you would think of. Geographical search is one of the great features that Solr implemented really nicely by providing spatial indexes, query filters and sorting by distance. Unfortunately, the default Solr provider in Sitecore doesn’t utilise the spatial search feature in Solr. So, I’ve decided to build this small project to extend the existing provider. Thanks to @aokour86 (The author of the Sitecore spatial provider for Lucene) and to @herskinduk for their help and guidance.

Here is the installation guide and examples of how to use the extended provider.

Installation:

  1. Download the “Solr Search Support” package from the market place.
  2. Login to Sitecore (v 7.0+) and install the package via the “Installation Wizard”
  3. At the last step of the installation wizard, choose to restart the Sitecore server.
  4. Edit the /App_Config/Include/Sitecore.ContentSearch.Solr.Indexes.config to change the index type from
  5. Sitecore.ContentSearch.SolrProvider.SolrSearchIndex, Sitecore.ContentSearch.SolrProvider to Sitecore.ContentSearch.Spatial.Solr.Provider.SolrSearchIndexWithSpatial, Sitecore.ContentSearch.Spatial.Solr on the master, web and core indexes. E.g the web index should look like
    <index id="sitecore_web_index" type="Sitecore.ContentSearch.Spatial.Solr.Provider.SolrSearchIndexWithSpatial, Sitecore.ContentSearch.Spatial.Solr"> ...</index>
  6. Edit the Solr Schema.xml and add the following dynamic field
    <dynamicField name="*_rpt" type="location_rpt" indexed="true" stored="true" />

Read More Sitecore Spatial Search using Solr

Sitecore Solr

Marketplace Module Provider Sitecore Solr

Recent Posts

  • From Hours to Seconds – The Awesome Performance of Sitecore Publishing Service V2
  • Run Sitecore Publishing as Azure Cloud Service
  • How to Achieve Zero-Downtime Sitecore Deployments (EF Automatic Migrations) – Part III
  • How to Achieve Zero-Downtime Sitecore Deployments (Solr Search) – Part II
  • How to Achieve Zero-Downtime Sitecore Deployments (Architecture) – Part I

Recent Comments

  • Akshansh on Sitecore 7 & Solr – Why SearchResultItem.Url is always null?
  • ehabelgindy on Sitecore Spatial Search using Solr
  • James on Sitecore Spatial Search using Solr
  • James on Sitecore Spatial Search using Solr
  • James on Sitecore Spatial Search using Solr

Archives

  • February 2017
  • March 2015
  • February 2015
  • January 2015
  • December 2014
  • November 2014
  • October 2014
  • August 2014
  • June 2014
  • May 2014

Categories

  • Entity Framework
  • publishing
  • Scalability
  • Session State
  • Sitecore
  • Solr

Meta

  • Log in
  • Entries RSS
  • Comments RSS
  • WordPress.org

Ehab ElGindy

sitecore blog
Free WordPress Blog Theme by Compete Themes.