Contents
The GUID for the user who submitted the search query. The URL for the search results page. Custom tags that identify the query. You can specify multiple query tags, separated by semicolons. Additional properties for the query.
The Personalizing search results in a SharePoint Add-in sample shows a basic search example and a personalized search results example that uses the search query CSOM. The basic search example lets the user provide a search filter to use for a tenant-wide search. Sites are searched based on that user-supplied filter.
How are query parameters used in SharePoint search?
Using query parameters with the Search REST service When you make a call to the Search REST service, you specify query parameters with the request. Search in SharePoint uses these query parameters to construct the search query. With a GET request, you specify the query parameters in the URL.
When to use enablequeryrules in SharePoint search?
This parameter is used only when EnableQueryRules is set to true, otherwise it is ignored. The default value is false. The type of the client that issued the query. The GUID for the user who submitted the search query. The URL for the search results page.
You can use the Search REST service to submit Keyword Query Language (KQL) or FAST Query Language (FQL) queries in your SharePoint Add-ins, remote client applications, mobile applications, and other applications. The Search REST service supports both HTTP POST and HTTP GET requests.
If your search results contain images that are served from the CDN, then the URL for the image will be the CDN URL that is returned in the results and not the asset library location. For more information on CDN please review Use the Office 365 Content Delivery Network (CDN) with SharePoint Online.
When to use POST request in SharePoint search?
Use POST requests in the following scenarios: When you’ll exceed the URL length restriction with a GET request. When you can’t specify the query parameters in a simple URL. For example, if you have to pass parameter values that contain a complex type array, or comma-separated strings, you have more flexibility when constructing the POST request.