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?
A:
- Use .NET Reflector to see the source code of the
CrawlHistory
class (additionally, you may want to use the FileGenerator add-in). - Check the
dbo.proc_MSS_GetCrawlHistory
stored procedure from theSharedServicesInstanceName_Search_DB
database (allGetCrawlHistory
overloads use it internally).
Marek Grzenkowicz
2010-01-18 13:10:52