Share via


CrawlLog.RemoveDocumentFromSearchResults method (String)

Remove a document from search results using its URL.

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

Syntax

'Declaration
Public Function RemoveDocumentFromSearchResults ( _
    documentURL As String _
) As Boolean
'Usage
Dim instance As CrawlLog
Dim documentURL As String
Dim returnValue As Boolean

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

Parameters

  • documentURL
    Type: System.String

    Supplies the URL of the document.

Return value

Type: System.Boolean
Returns true if the document was successfully removed from search results, 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

RemoveDocumentFromSearchResults overload

Microsoft.Office.Server.Search.Administration namespace