Sitecore 9 Error: "There is no method 'Filter' on type...

While building out a new Sitecore 9 implementation we ran into the following error:

There is no method 'Filter' on type 'Sitecore.ContentSearch.Linq.QueryableExtensions' that matches the specified arguments]

It turns out that this error message is caused when Sitecore starts before the Solr service is started. It does not go away after the Solr server starts either. The solution is to either do an iisreset from a command prompt or add a new configuration transform to your project to prevent the issue going forward.

<sitecore>
  <pipelines>
    <initialize>
      <processor type="Sitecore.ContentSearch.SolrProvider.Pipelines.Loader.InitializeSolrProvider, Sitecore.ContentSearch.SolrProvider">
        <patch:delete />
      </processor>
      <processor type="Sitecore.ContentSearch.SolrProvider.Pipelines.Loader.InitializeSolrProvider, Sitecore.ContentSearch.SolrProvider" patch:before="*[@type='Sitecore.Pipelines.Loader.InitializeScheduler, Sitecore.Kernel']"/>
    </initialize>
  </pipelines>
</sitecore>

This solution is from the Sitecore StackExchange site.

Sitecore 9 Error: "There is no method 'Filter' on type...
Share this