Please specify what version of the library you are using: [1.3.2]
Please specify what version(s) of SharePoint you are targeting: [Modern SPO]
I'd like to change the context of the Search object but it seems that instantiating it as const search = new Search(absoluteURL) isn't making any difference in the results of the query. Am I doing something wrong or is this just possible?
Hi @jcosta33,
Actually, new Search(webAbsUrl) ends up sending requests to provided webAbsUrl.
const search = new Search(webAbsUrl);
search.execute('*').then(console.log).catch(console.log);
however, you probably searching for a way to limit search with a specific web, then this is what you probably need:
search.execute(`* Path:${webAbsUrl}`).then(console.log).catch(console.log);
I think that was it, thanks!
Cool. Closing the issue.