Domanda

Immagino che questo sia un comportamento desiderato, ma sto cercando di superarlo - ho cercato e nessuno si lamenta dalla stessa cosa.

Ho una pagina dei risultati della ricerca che contiene i risultati del risultato di ricerca principale.Durante la ricerca della parola "test", l'URL sembra così: http://xxxxx.com/sitepages/results.aspx ?k= test

e i risultati vengono visualizzati se corrispondono alla mia parola chiave "test".

Ma se una persona va direttamente alla pagina, senza alla ricerca di nulla: http://xxxxx.com/sitepages/results.aspx , quindi Tutti i risultati vengono visualizzati sulla pagina, che è un comportamento indesiderato.

C'è una proprietà in cui posso nascondere questi risultati fino a quando non viene eseguita una ricerca corretta?

Grazie in anticipo!

È stato utile?

Soluzione

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.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a sharepoint.stackexchange
scroll top