I'm creating a new ClientContext:
ClientContext clientContext = new ClientContext(targetUrl);
When trying to do a simple search:
KeywordQuery keywordQuery = new KeywordQuery(clientContext); keywordQuery.QueryText = "test"; SearchExecutor searchExecutor = new SearchExecutor(clientContext); var results = searchExecutor.ExecuteQuery(keywordQuery); context.ExecuteQuery();
The results are returned, but only for the site from the
targetUrl used in the context. Is there any way to return results across all sites using .Net CSOM Search?