Implementation
- Make use of Search REST service : <Site URL>/_api/search/query?querytext=”<SearchTerm>”.
- Process the returned JSON result.
- Add required Search Service Permission to App.
Get Started
Additional Data
You can use developer tool to obtain additional result elements of Primary or Secondary Result from JSON and use it to display on the page. Here results[3] and results[6] have been used for display purpose.
Conclusion
This function can be used to get search result from App Web. Examine the returned JSON data to get more results elements. Styling can be done to display the result in any format.