SharePoint 2013 TIP: easy no-code method for obtaining Result Source IDs
- Launch Central Administration
 
- Navigate to: Farm Search Administration > Search Administration > Queries and Results > Result Sources.
 
- Click on the target result source listed.
 
- Copy the URL in the browser to NotePad.
 
- Look for that portion of the URL strong prefixed with sourceid=
 
- The string between the single quotes is the HTML-Encoded result source ID.
 
- Substituted a hyphen for each instance of %2D, and there you have it.
 
Notes
- Use this test URL:
 
- [site URL base]/_api/search/query?querytext='[your seaerch term'&sourceid='[result source ID]'
 
- The default result source has GUID of: 00000000-0000-0000-0000-000000000000.
 
 
 
 
 
 
          
      
 
  
 
 
 
 
 
 
 
 
 
 
 
No comments:
Post a Comment