Forum Discussion
Site directory in SharePoint Online
- Jan 18, 2019
You can still use KQL in your search query, so for example if I did this:
https://www.office.com/search/sites?auth=2&home=1&q=NOT+Title:Flow
It will give me all of my sites where Flow is not included in the title. The query will however appear in the search box so could be wiped out, it really depends on how important it is that users don't see that site in search.
thanks Vikram V for the reply.
In fact i tried with the search query web part. But i'm unable to filter out the results. There are many personal and blog sites coming up in the results and not all sites getting populated.
Below is the query text i'm using-
(contentclass:”STS_Site” OR contentclass:”STS_Web” site: "https://tenant.sharepoint.com/sites/REU*")
{SearchBoxQuery}
i want site collections starting with REU*
- MattyVxJan 21, 2019Brass Contributor
Try the following Query text -
contentclass:STS_Site OR contentclass:STS_Web SPSiteURL:REU
- kevingeorgetJan 22, 2019Brass Contributor
Thank you MattyVx,
This kind of works for me. But i like the solution provided by Matt Weston more. It suits my requirement better.
Thanks again.
- Eric RiehlApr 15, 2019Copper Contributor
On the results page https://www.office.com/search/sites?auth=2&home=
is it possible in the query string to specify sort ascending or descending on a property such as Title?