Skip to content

Commit ae804d5

Browse files
authored
Clarified better the URL prefix for REST
Tried better articulate what the prefix URL on the _api/search REST endpoint means.
1 parent 365afee commit ae804d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/general-development/using-the-sharepoint-search-query-apis.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ To download an example, see the following code sample posted by SharePoint MVP [
7878

7979
SharePoint includes a REST service that enables you to remotely execute queries against the SharePoint Search service from client applications by using any technology that supports REST web requests. The Search REST service exposes two endpoints, **query** and **suggest**, and will support both **GET** and **POST** operations. Results are returned in either XML or JavaScript Object Notation (JSON) format.
8080

81-
The following is the access point for the service: `https://{site_url}/_api/search/`. You can also specify the site in the URL, as follows: `https://{site_url}/site/_api/search/`. The search service returns results from the entire site collection, so the same results are returned for both ways to access the service.
81+
The following is the access point for the service: `https://{site_url}/_api/search/` using the root site as the query entry point. You can also specify another site in the URL, as follows: `https://{site_url}/site/_api/search/`. The URL prefix before `/_api/search/` will use the default result source defined at that site/scope and query rules will also be contextual to the URL used, unless parameters are used to override this behavior. Unless any specific search configuration is made at a site, the results are the the same for both ways to access the service.
8282

8383
See [SharePoint Search REST API overview](sharepoint-search-rest-api-overview.md) and [Retrieving query suggestions using the Search REST service](retrieving-query-suggestions-using-the-search-rest-service.md) for more information.
8484

0 commit comments

Comments
 (0)