Forum Discussion
EVERTON BATISTA PETRO ALEXANDRE
Oct 15, 2018Brass Contributor
Result Source to get all documents and list items about office 365 Groups (Teams)
Hello
I am using the SharePoint Search to create a result source. This result source should return all documents/list_items about Office 365 Groups (teams). I tried to use "WebTemplate:Group", but in this case the search retrieve only the sites are returned. I would like that the user get the documents/items inside these sites.
Thanks
Everton
- Alan MarshallSteel ContributorIf by chance you specified all new group based team sites to be created under /teams/ you could filter based on path starts with. You can't use the out of the box Path managed search property as it is set to exact match so map it to one of the refinablestringxx fields and use that.
- EVERTON BATISTA PETRO ALEXANDREBrass Contributor
Sorry Alan Marshall, I didn't understand...
you suggested using the starts with and path property, however my organization has about 100 team project. So I can not put the 100 items, like Path: // https: //tst.sharepoint.com/siteteams ....
The other solution with the refinablestringxx I did not understand. Could you give me more details, please?
Thank you!
- Alan MarshallSteel ContributorThe assumption to make this work is that all your O365 groups start with the URL https://tenant.sharepoint.com/teams/.
You will need to go to SharePoint Admin and Search schema, pick a refinablestringxx and edit the mapping to include Path. You can then use that refinablestringxx in your query to do a string * match to the above URL