none
SharePoint Search Rest API RRS feed

  • Question

  • We have a requirement to retrieve all sites using SharePoint search API. We tried following query:

    https://<my_root_web>/_api/search/query?querytext='(contentclass:sts_web)'

    Below are some observations:

    1. The API response doesn't contain all the sites present in our site collection.

    2. We have deleted some sub-sites, still the search API response contains those sites.

    3. We created a site and tried calling search API with above query. But the API response doesn't contain the site that we created. The search API response is not real time.

    Is this the expected behavior of search API or is there anything that we can try to make it work as expected?


    BrajMohan


    Wednesday, July 4, 2018 5:55 AM

All replies