Pregunta

Supongo que este es un comportamiento deseado, pero estoy tratando de superarlo, busqué y nadie se queja de lo mismo.

Tengo una página de resultados de búsqueda que contiene la parte web de resultados de búsqueda de núcleo.Al buscar la palabra 'prueba', la URL se ve así: http://xxxx.com/sitepages/results.aspx ?k= prueba

y los resultados se muestran si coinciden con mi palabra clave 'prueba'.

Pero si una persona va directamente a la página, sin buscar nada: http://xxxx.com/sitepages/results.aspx , entonces Todos los resultados se muestran en la página, que es un comportamiento indeseable.

¿Hay una propiedad donde pueda ocultar estos resultados hasta que se realice una búsqueda adecuada?

¡Gracias de antemano!

¿Fue útil?

Solución

This is not the out of the box behavior. Hitting the results page with out a keyword parameter should result in a blank page. I am using the Enterprise Search Center site template. My results page is under /pages/results.aspx. Testing with a Basic Search center ressults in the same thing. I get no results without a keyword parameter.

Looking at your URL it appears that you have crearated your own results page in SitePages. I suspect that in configuring the Results web part you added some parameter that is causing the query to fire in spite of the keyword parameter.

Test the behavior with an OOB search site and then compare the web part properties.

Licenciado bajo: CC-BY-SA con atribución
scroll top