Share via


CrawlLog.RecrawlDocument method (Int32)

Set a document to be recrawled in the next crawl of its content source.

Namespace:  Microsoft.Office.Server.Search.Administration
Assembly:  Microsoft.Office.Server.Search (in Microsoft.Office.Server.Search.dll)

Syntax

'Declaration
Public Function RecrawlDocument ( _
    docID As Integer _
) As Boolean
'Usage
Dim instance As CrawlLog
Dim docID As Integer
Dim returnValue As Boolean

returnValue = instance.RecrawlDocument(docID)
public bool RecrawlDocument(
    int docID
)

Parameters

  • docID
    Type: System.Int32

    Supplies the doc ID of the document to be set for recrawl.

Return value

Type: System.Boolean
Returns true if the document was successfully set for recrawl, false if the document was not found. If the CrawlLog instance has a tenant ID, this method also returns false if the document's associated tenant ID does not match the CrawlLog instance tenant ID.

See also

Reference

CrawlLog class

CrawlLog members

RecrawlDocument overload

Microsoft.Office.Server.Search.Administration namespace