Constructor de consultas para la fuente de resultados no funciona en el administrador central
-
10-12-2019 - |
Pregunta
Estoy probando fuentes de resultados en el nivel de solicitud de servicio de búsqueda (es decir, dentro del administrador central).Cuando creo una nueva fuente, puedo hacer clic en el enlace para iniciar constructor de consultas, pero el panel de vista previa del resultado de búsqueda proporciona el siguiente 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: )
Este es el administrador central, y cuando voy a la configuración del sitio, no hay un enlace "Características de la colección de sitios", y en las "Funciones del sitio", no hay una función "Partes web y plantillas de búsqueda de servidores de búsqueda".
¿Alguna idea de cómo puedo volver a trabajar el constructor de consultas?
Solución
Pruebe esto ... Abra el shell de administración de SharePoint 2013 como administrador y ejecute el siguiente comando:
Enable-SPFeature SearchWebParts -url http://<central admin url>
Otros consejos
Tuve que habilitar esto para la aplicación web.Estaba recibiendo el mismo error cuando lo hice por CA.
Enable-SPFeature SearchWebParts -url http://sales.portal.net
funcionó para mí.