Suddenly search stopped working for all sites for Non Default zones in AAM, it has always worked before. We have not changed any configuration related to search or AAM.
We see below error in ULS logs
Getting results failed: System.NullReferenceException: Object reference not set to an instance of an object. at Microsoft.Office.Server.Search.Administration.UrlMapper.ExtractMapping(Pair`2 properties, SPSite site, IDictionary`2 urlMapping, IDictionary`2 reverseUrlMapping) at Microsoft.Office.Server.Search.Administration.UrlMapper.GetNewCacheEntry(Pair`2 properties) at System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd(TKey key, Func`2 valueFactory) at Microsoft.Office.Server.Search.Administration.UrlMapper.GetUrlMapping(QueryProperties properties, UrlZoneOverride urlZoneOverride) at Microsoft.Office.Server.Search.Administration.SearchServiceApplicationProxy.Execute(QueryProperties properties) at Microsoft.Office.Server.Search.Query.Query.ExecuteQuery() ... b9cd9e9d-1e39-f079-037e-1bf169e7cfff
I have seen some similar posts in which they had mentioned about Orphaned items in content databases which we cleaned by deleting them but still does not work
Kindly help!