When I do a search on SharePoint using the url http:///TS/EDMS/_api/search/query?querytext='tequila' and when I use the same url in a separate application that does the rest call (external application), I get two different sets of results. And when the use the search function in SharePoint directly, I get a different result from the api calls.
Is there a way to narrow the search using the api REST service to a library? I would expect the same results from the api either through the web page or through an external call or through the built in search on SharePoint. Can someone please explain why there is a difference and what I need to do to fix it?
Also, I have tried to append a library in the url as follows: http:///TS/EDMS/DAL/_api/search/query?querytext='tequila' and I get a 404 error, but if I remove the /_api/search/query?querytext='tequila' I get to the DAL library on SharePoint.
Any help is appreciated.