I am trying to create search page for a specific document library
Create result source and page with search results web part to use this result source.
{SearchBoxQuery} {?{searchTerms} Path:{https://SharePoint2013/sites/Projects/Project Documents}}
but I do not get any results. is possible to restrict results to a particular document library?
Thanks it works. is it possible to return only documents? results also contain allitems.aspx
When calling the path command you should note use the parentheses. Instead use quotes around the path variable so it looks like… Path:”https://domain/sites/library”
