Tuesday, July 12, 2016

SharePoint 2013 TIP: easy no-code method for obtaining Result Source IDs


  1. Launch Central Administration
  2. Navigate to: Farm Search Administration > Search Administration > Queries and Results > Result Sources.
  3. Click on the target result source listed.
  4. Copy the URL in the browser to NotePad.
  5. Look for that portion of the URL strong prefixed with sourceid=
  6. The string between the single quotes is the HTML-Encoded result source ID.
  7. 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: