Posts

Showing posts with the label lucene.net.spatial

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...