Posts

Showing posts with the label ContentSearch

Building Sitecore Content Search Queryable using Rules engine

Image
Recently i have built a custom search module which uses Sitecore Content Search API that would let you define the search criteria directly from content editor, where you would be able to select which index, start locations, Templates that you want the results to filter on from the content tree i also wanted to add fields filter, like filter on checkbox, date, Single-line Text fields etc. I had an idea to build this Fields filter using Sitecore Rule Engine since it seemed like a good fit here! Imagine you would be able to build a filter like: Where [Field Name] is equal [String Value] That would be nice, right? So i started digging into rules conditions and see how can i make this possible, And came to my surprise that Sitecore have built a predefined set of conditions to do just the job! Using this Query builder rule [ /sitecore/system/Settings/Rules/Search Query Builder ] you will be able to see the set of conditions for Search query where you can build your filter,...

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