SharePoint Search Using REST From JavaScript
Introduction SharePoint 2013 provides a very powerful endpoint, which you can use to retrieve search result and query suggestion. The first thing which we have seen is the available search endpoints Endpoint http://[host]/[site]/_api/search/query http://[host]/[site]/_api/search/postquery http://[host]/[site]/_api/search/suggest The simplest way to run a query against REST API is to pass a keyword query. There are two basic ways to run searches, where one is by sending the search parameters through the RESTful URL and the other by sending them through the query or suggest endpoints. The querytext can be any legal keyword query language construction, including managed properties and operators. So far we’ve just looked at executing a basic query, where the query text is specified. Here are a couple of other common operations, which you might want to do. Operation Sample REST URL Specify the maximum number of record to return /_api/search/query?querytext='search term'...