Questions:        

How to Implement WebRequest for StartIndexing method ?


Solution:

StartIndexing is async method so if you request it will work in background & will not impact on your website traffic.


Implementing StartIndexing get method in third party tool :


    string webAddr = <DomainName>/Admin/NopAcceleratePlusSearch/StartIndexing;

    var httpWebRequest = (HttpWebRequest)WebRequest.Create(webAddr);

    httpWebRequest.ContentType = "application/json";

    httpWebRequest.Method = "GET";

    HttpWebResponse httpResponse = (HttpWebResponse)httpWebRequest.GetResponse();

    if (httpResponse.StatusCode == HttpStatusCode.OK)

    {

        using (var streamReader = new StreamReader(httpResponse.GetResponseStream()))

        {

            var responseText = streamReader.ReadToEnd();


        }

    }


Please call this method, once your updation is done using third party / external tools / script so it will make 100% indexing for your catalog.