This appears to be a regression of
MNT-13350. This shows as the same issue that was fixed for 5.0.1 but for some reason, the issue still shows up for 188.8.131.52, 5.0.3 and 5.1.
Search results in the site search drop-down box is are from searching the entire repository rather than being scoped to only the Share site from which the user is searching.
Observed in: 184.108.40.206, 5.0.3 and 5.1.
Steps to reproduce:
1. Log in to Share and create a file in "Repository" (e.g. "Repository" > "test.txt)
2. Create a file with the same name in document library of a site (e.g. "site1" > document library > "test1.txt)
3. In the site (site1) search for the file "test.txt".
Search results in the live search drop-down will be for the entire Repository not constrained to that site. Therefore it displays both files.
Search results will be constrained to that site. Therefore it only displays the file in that site.