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"
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"
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.