Posts

Showing posts with the label spatial

Sitecore Spatial/Geo Location Search Module

Image
Previously i have released Sitecore.ContentSearch.Spatial module that support applying Geo-location based search using Sitecore ContentSearch API, That release had some issues with results getting cached and not updating when you publish the location items or make changes to them, Also it required that you use different [ documentBuilderType ] than Sitecore default. In the new release you only to update your index to use (Sitecore.ContentSearch.Spatial.Provider.Lucene.LuceneIndexWithSpatial) class, and to add two computed fields configurations to your Index configurations, and that's it! To install this module, Download or clone this repository  on github to your machine, As of now, i'm using  references for Sitecore 8.2 -Update3 from Sitecore Nuget feed, You can update the references to match your Sitecore versions using Nuget Manager. Build the solution and copy the following dlls from the bin folder to your project: Sitecore.ContentSearch.Spatial.dll Spat...

Integrating Lucene.Net.Contrib.Spatial with Sitecore Search API (Geo-Spatial Search)

Image
Note : Newer release is published on github  that support sitecore 8.1 & 8.2 and fixes the issue with location results being cached, Go to this post to read about the details of the new release I have created an Extension to Sitecore.ContentSearch API which uses Lucene.Net.Contrib.Spatial library to generate spatial queries. Currently, i added a method " WithinRadius() " to retrieve locations within specific radius (In miles) of center point , the results will be sorted based the distance from the center point. This extension assumes that you have Latitude and Longitude stored as fields in your location items. Installation :  You can either get the source from github or install nuget package.     Marketplace : Go to Sitecore Marketplace and download "Lucene Spatial Search Support" package. Install the package using Sitecore Installer wizard Configurations : Go to ' Sitecore.ContentSearch.Spatial.config ' file in your include fol...