I'm trying out Result Sources at the Search Service Application level (i.e. within Central Admin). When I create a new source I can click the link to Launch Query Builder, but the Search Result Preview panel gives the following error:

The Search display templates are not present on this site collection. To add them, you
need to activate the "Search Server Web Parts and Templates" feature on the Site
Collection Features page.

Correlation ID: 94b6249c-d255-602d-b77b-757efe4b3071

Display Error: The display template had an error. You can correct it by fixing the 
template or by changing the display template used in either the Web Part properties or 
Result Types.

Template '~sitecollection/_catalogs/masterpage/Display 
Templates/System/Control_QueryBuilderPreview.js' not found or has syntax errors. 
(LoadTemplate: )

This is Central Admin, and when I go to Site Settings, there is no "Site Collection Features " link, and in the "Site Features" there is no "Search Server Web Parts and Templates" feature.

Any ideas how I can get the query builder working again?

up vote 20 down vote accepted

Try this... Open up the SharePoint 2013 Management Shell as Administrator and run the following command:

Enable-SPFeature SearchWebParts -url http://<central admin url>
  • 1
    Perfect! That did the trick. Thanks Miguel – QMKevin Jun 13 '13 at 12:21
  • 1
    Enable-SPFeature SearchWebParts -url http://<central admin url> for me worked... Thanks :) – user19859 Oct 1 '13 at 11:03

I had to enable this for the web application. I was getting the same error when I did it for CA.

Enable-SPFeature SearchWebParts -url http://sales.portal.net worked for me.

Your Answer

 
discard

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.