When I try to use the Find a file
search functionality within a SharePoint List or Library it always returns
Your search returned no results. Some files might be hidden. Include these in your search.
I've tried the obvious in order resolve this issue, e.g. re-indexing the library, kicking off a new full crawl, checking content approval is set to no etc. All with no luck unfortunately.
I've investigated the issue further and spotted some interesting things which could be causing the problem but unsure what the actual fix is; e.g.
The web application is served to all users over https. (All users are internal users within our network - No external access)
The Alternative Access Mappings have two entries for the Intranet web application;
Internal URL ZonePublic URL https web app url Default https web app url http web app url Default https web app url
When I reviewed the search crawl log I noticed all the URLs were indexed using http, not https.
This led me to doing some more testing with interesting results;
When I use Enterprise search everything seems to be working absolutely fine.
When I use OSSearch there are no results (even though there definitely should be)
I checked the search URL the OSSearch was using and noticed the U
parameter for This Site
scope started with https.
Because the crawl log indexed all files using http this was probably the issue. When I manually changed the U
parameter to use http instead all the results were showing correctly.
I guess this somehow relates to why the search is not working in Document libraries and Lists too, but not entirely sure what the fix is.
I guess it somehow relates to either Alternative Access Mappings or the start addresses in the content source within search, however I have both http and https web app urls within the start addresses.
Please can someone give me some insight into this issue and a way I can fix it?