Question

I would like to search only document libraries in a site(not the document). I tried below search but its returning documents within the document library.

path:"http://localhost/managedpath/sitename" and contentclass:"STS_List"

Was it helpful?

Solution

Check out this page that gives more examples of the other contentclasses you can use for your search query. SharePoint Power Searching Using ContentClass

See the List ContentClass codes table where STS_List_DocumentLibrary might do the trick.

Licensed under: CC-BY-SA with attribution
Not affiliated with sharepoint.stackexchange
scroll top