Tuesday 29 August 2023

SearchStax Sitecore Schema populate Failing Issue

Recently we come to know with one of the known issue that if you install latest SearchStax module with Sitecore https://www.searchstax.com/docs/searchstudio/sitecore-module-2/ and then after creating new app using SearchStax Configuration module page.
Once new app created and then try to run Populate schema, will get solr connectivity exception.

Basically above issue coming because of timeout connectivity issue - and it is known by SearchStax.
Currently if you are facing such issue then

Please get latest hotfix Sitecore SearchStax official module. Directly installing will help to fix this issue.

 

Thursday 1 June 2023

How to fix Solr downtime issue

Recently I came across a scenario, where solr was down. And because of that Issue - all page which using solr logic related component having issue.


Solr down time issue might occur because of

  • Index got deleted
  • JVM full
  • Solr service stopped
  • Solr server having issue

To avoid such issue in future, most of the projects used base class for Search related logic. Please make sure try-catch mechanism applied.


try

{

using (var context = searchIndex.CreateSearchContext())

{   

  var queryable = context.GetQueryable<S>();

         //search logic   

          var results = queryable.GetResults();

          if (results == null) 

return new S[] { };

  return results.ToList();

}

}

catch (Exception e)

{

Log.Error(e.Message, e, this);

return new S[] { };

}