Pergunta

Eu acho que este é um comportamento desejado, mas estou tentando superá-lo - eu procurei e ninguém reclama da mesma coisa.

Eu tenho uma página de resultados de pesquisa que contém a Web Part Core Search Results.Ao procurar a palavra 'teste', o URL parece assim: http://xxxx.com/sitepages/results.aspx ?k= teste

e os resultados são exibidos se eles corresponderem à minha palavra-chave 'test'.

Mas se uma pessoa vai diretamente para a página, sem se procurar por nada: http://xxxx.com/sitepages/results.aspx , então Todos os resultados são exibidos na página, que é comportamento indesejável.

Existe uma propriedade onde eu possa ocultar esses resultados até que uma pesquisa adequada seja executada?

Obrigado antecipadamente!

Foi útil?

Solução

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 em: CC-BY-SA com atribuição
Não afiliado a sharepoint.stackexchange
scroll top