[edit] Narrowing the diagnostic: searchs results are incorrect wen call from communication sites [/edit]
I'm working with SharePoint Online and I'm facing an issue regarding search results.
I have two site collections. Let's say /sites/A
and /sites/B
Using the Search Query Tool (2.8.3.0), I put this search : path:"https://mytenant.sharepoint.com/sites/A
Running this query against /sites/A works
. Same query against /sites/B
does not.
However, (and it's puzzling me), the other direction works. Search for path:"https://mytenant.sharepoint.com/sites/B
works against the two collections.
What can explain this behavior?
If it matters, here's the higher picture : we have a site hub (which is /A in my case) and a bunch of sites collections (/B) joined to the hub. All of theses sites are modern team sites. The hub site is a communication site. Each site have a unique "metadata" item in a specific list. Then I want to search for these items using the modern search web parts from the hub site.
/search/
for your API calls. Then you can control the outcome.