CrawlLog.RecrawlDocument method (String)

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 ( _
    documentURL As String _
) As Boolean
'Usage
Dim instance As CrawlLog
Dim documentURL As String
Dim returnValue As Boolean

returnValue = instance.RecrawlDocument(documentURL)
public bool RecrawlDocument(
    string documentURL
)

Parameters

  • documentURL
    Type: System.String

    Supplies the URL 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