We are using Solr for indexing. We recently upgraded from Sitecore version 8.1 update 2 to 8.2 update 5. After upgrading when a search is performed we get the following error:
There is no method 'GetResults' on type 'Sitecore.ContentSearch.Linq.QueryableExtensions' that matches the specified arguments
Here is the relevant code:
var csmIndex = ContentSearchManager.GetIndex(index);
using (var context = csmIndex.CreateSearchContext(Sitecore.ContentSearch.Security.SearchSecurityOptions.DisableSecurityCheck))
{
var query = context.GetQueryable<CustomSearchResult>();
query = query.Where(i => i.SearchContent.Contains(search) || i.SearchTitle.Contains(search) || i.Url.Contains(search));
if(facilityID != default(ID))
{
query = query.Where(i => i.FacilityId == facilityID);
}
query = query.Page(page - 1, pageSize);
var items = query.GetResults();
}
I decompiled Sitecore.ContentSearch.Linq.dll
and verified the method exists. I am getting no compliation errors. I'm not sure what has changed between versions that would cause this.