Todd Bethel
Todd Bethel

Reputation: 21

Getting SharePoint crawl history

I have an application that uses the Microsoft.Office.Server.Search.Administration.CrawlHistory class to read crawl history information once a day and save it to a database where we can generate reports and statistics. For some reason, though, this class will not return data for crawls that started on the current date; it will only return data for crawls that started on an earlier data. Can anyone explain how to get this class to return data for all crawls that have run?

Upvotes: 2

Views: 1029

Answers (1)

Marek Grzenkowicz
Marek Grzenkowicz

Reputation: 17383

  1. Use .NET Reflector to see the source code of the CrawlHistory class (additionally, you may want to use the FileGenerator add-in).
  2. Check the dbo.proc_MSS_GetCrawlHistory stored procedure from the SharedServicesInstanceName_Search_DB database (all GetCrawlHistory overloads use it internally).

Upvotes: 1

Related Questions