I have a requirement to search on a specific library containing approximately 1000 documents.
I have created a new page called 'Search' and added Search Bar, Search Results and Search Refiner webparts.
I then created a custom Result Source at the site collection level with the following query string:
When I enter a search term a series of refiners appear in the Search Refiners webpart and a Results Count appears at the Bottom of the Search Results webpart but no results are displayed. Instead, the 'Nothing here matches your search' message stays in place.
Clearly the system is finding results, why is it not displaying them?
Due to the Microsoft Documentation you need to do the following:
To return items located in folders in the site that you specify for the path property, you have to add /* to the URL of the specified site; for example, path: "https://contoso.sharepoint.com/Shared Documents/*"
Check the crawl logs in the search service application (if you have access) at that path to make sure the items are in the index. You can enter http://cdc/cdc/CorporateDocs/* in the URL field and look for successful crawls.
If they are, when you setup the result source query, make sure you are seeing results in the test part of the query builder before saving it.
Also, you should be able to query for path: http://cdc/cdc/CorporateDocs similar to how ReTech says but on the out of the box search results page. That should help rule out misconfiguration of your web parts.