I am having issue while searching using query text in a specific site. When I use following get query, https://client.sharepoint.com/_api/search/query?querytext='vpn', I get results in the entire site of client.sharepoint.com I also get results when I search for term 'vpn' directly in site https://client.sharepoint.com/sites/SysDocs. Now I need to combine both. When I use https://client.sharepoint.com/_api/search/query?querytext='vpn+path:"https://client.sharepoint.com/sites/SysDocs"', it is not returning me results.
What should I change in the syntax for getting 'vpn' results in site https://client.sharepoint.com/sites/SysDocs ? Please advise !!
Thanks !!
https://client.sharepoint.com/_api/search/query?querytext='(vpn)+AND+(path:https://client.sharepoint.com/sites/SysDocs)'
and check ?https://client.sharepoint.com/_api/search/query?querytext='vpn AND path:https://client.sharepoint.com/sites/SysDocs'
? It works at my end