我猜这是一种理想的行为,但我试图克服它 - 我搜索,没有人从同样的事情中抱怨。

我有一个包含核心搜索结果Web部件的搜索结果页面。搜索“测试”这个词时,URL看起来如此: http://xxxx.com/sitepages/results.aspx ?k=测试

如果它们匹配我的关键字'test',则会显示结果。

但如果一个人直接到页面,而不会搜索任何东西: http://xxxx.com/sitepages/results.aspx 然后 所有结果都显示在页面上,这是不希望的行为。

是否有一个属性,其中我可以隐藏这些结果,直到执行正确的搜索?

提前感谢!

有帮助吗?

解决方案

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.

许可以下: CC-BY-SA归因
scroll top