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 开发者_如何学Cclass 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?
- 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).
精彩评论