搜索所有网站集 [英] Search in all Site Collections
问题描述
我正在尝试查找Web应用程序的所有网站集中的所有项目(其中ProjectNumber ='1234')
I'm trying to find all items in all site collections of my web application (where ProjectNumber = '1234')
我看过GetSiteData,但其中最广泛的范围是SiteCollection.
I've looked at GetSiteData, but the broadest scope of that is SiteCollection.
我没有找到WebApp范围内的搜索方法.最好的方法是什么?我要搜索的所有网站集都由一个搜索服务应用程序编制索引.
I've not found a WebApp scoped search method. Whats the best approach? All the site collections I was to search in are indexed by a single search-service application.
推荐答案
我们可以使用关键字查询来确定所有网站集的搜索范围:
We can use Keyword query to make search scope for all site collections:
contentclass:STS_Site
这是一个有关搜索列表项的演示,例如Title = test:
And here is a demo about search list items where Title=test for example:
contentclass:"STS_Site" contentclass:STS_ListItem Title=test
有关用于搜索的SharePoint ContentClass的更多信息,请参考:
More information about SharePoint ContentClass for search, please refer:
使用ContentClass的SharePoint Power Search
这篇关于搜索所有网站集的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!