Example code for my @SUG_NL SUGCON presentation on Sitecore Search.
- Search Service with per request caching decorator
- Criteria class with custom GetHashCode method
- Pivot Facet result parsing
- Generate Geohash strings
- Within circle area filter
- Otional acendinhg/descending distance scoring (not a 'sort' in the pure sense - more like rescoring)
- Incorporate unit test example
- Make spatial filter apply to Facet results
- Cleanup/rationalise interfaces and models
This solution examples where tested against a Sitecore 7.2. To work with the solution locally create a "lib" folder in the repository root with the Sitecore binaries and refetch the nuget dependencies.
To run the example locally you need to deploy the code and create definition ites for the controller renderings (for the SearchController).
The code and presentation uses the following projects:
- Lucene.Net.Contrib.Spatial (via Nuget)
- The presentation is based on impress.js and highlight.js