1. bala said:

    Don’t have this module for lucene?

    February 17, 2016
  2. Glenn said:

    Is it possible to return the distance?

    March 11, 2016
  3. Borji said:

    Hi, ehabelgindy,

    any idea why this does not work?
    string myid = “{B05F6DDC-763C-4D12-8137-B40A81AED6D7}”;
    var query = context.GetQueryable();
    query = query.Where(i => i.Parent == new ID(myid));

    it doesn’t work anymore whenever i replace the value of ID(“”) with a variable.
    any help can be appreciated.

    June 1, 2017
    • ehabelgindy said:

      I am not sure, looks like the expression tree only supports constants!
      Have you raised an issue with Sitecore Support?

      June 17, 2017
  4. Eduardo said:

    What would be the best approach to use both SwitchOnRebuildSolrSearchIndex and SolrSearchIndexWithSpatial as the same index provider?
    Would it be better to extend SwitchOnRebuildSolrSearchIndex and include the logic from SolrSearchIndexWithSpatial? Thoughts?

    April 2, 2018
    • Eduardo said:

      Nevermind, just saw the code from Github, looks like you already have a SwitchOnRebuildSolrSearchIndexWithSpatial implementation. Will take it for a spin. Thanks!

      April 2, 2018
      • James said:

        Actually nvm – I figured it out. You need to use the WithinRadius function first

        May 23, 2018
        • ehabelgindy said:

          glad you sorted it out

          May 24, 2018
  5. James said:


    Is this supported for SC 8.2. I’m getting the following error on index after completing the steps above:

    12940 14:03:13 WARN Crawler : AddRecursive DoItemAdd failed – {BED290E2-C379-4FAD-9179-2ECB0076C770}
    Exception: SolrNet.Exceptions.SolrConnectionException

    400177org.apache.solr.common.SolrExceptionorg.apache.solr.common.SolrExceptionERROR: [doc=sitecore://master/{debaede6-3896-4f5b-9ccf-673fd1d6ba58}?lang=en&ver=1&ndx=providers_master_index] unknown field ‘geolocation’400

    Source: SolrNet
    at SolrNet.Impl.SolrConnection.PostStream(String relativeUrl, String contentType, Stream content, IEnumerable`1 parameters)
    at SolrNet.Impl.SolrConnection.Post(String relativeUrl, String s)
    at SolrNet.Impl.SolrBasicServer`1.SendAndParseHeader(ISolrCommand cmd)
    at Sitecore.ContentSearch.SolrProvider.SolrBatchUpdateContext.AddRange(IEnumerable`1 batch)
    at Sitecore.ContentSearch.SolrProvider.SolrBatchUpdateContext.AddDocument(Object itemToAdd, IExecutionContext[] executionContexts)
    at Sitecore.ContentSearch.SolrProvider.SolrIndexOperations.ApplyPermissionsThenIndex(IProviderUpdateContext context, IIndexable version)
    at Sitecore.ContentSearch.SitecoreItemCrawler.DoAdd(IProviderUpdateContext context, SitecoreIndexableItem indexable)
    at Sitecore.ContentSearch.HierarchicalDataCrawler`1.CrawlItem(T indexable, IProviderUpdateContext context, CrawlState`1 state)

    May 23, 2018
  6. James said:

    Hi ehabelgindy,

    Another question – the SortByNearest sort order – how do you specify a lat/long for it to know what it is near to? For example – I have a list of locations, a user types in their location (which is converted to Lat/Long) and I want to show those locations that are ordered with the closest ones to the user first.

    Does that make sense?

    May 23, 2018

Leave a Reply

Your email address will not be published. Required fields are marked *