IDocumentWebService PruneDocuments Method Ankiro Enterprise Suite Reference Documentation
Removes documents from the data source that are not included in the set of document uris specified by 'documentUris'. Use this method when updating a data source, where it is desired to use information about pre-existing data source documents to remove documents, that no longer exists in the remote repository. The following operation is carried out by the method: 1) Determine which documents are currently registered for the data source. 2) Determine which of the documents are not included in the 'documentUris' set. 3) Invoke ProcessDocuments with a DocumentUpdate action = Remove for each of the documents that are to filtered out by the pruning operation, resulting in the documents being deleted from the data source. Please note that usage of PruneDocuments is only recommended for complex scenarios. In many cases, using BeginFullUpdate/ProcessDocumentsInFullUpdate/CommitFullUpdate may be used to automate handling of data source pruning.

Namespace: Ankiro.SearchServer.Web.Services
Assembly: Ankiro.SearchServer.Web (in Ankiro.SearchServer.Web.dll) Version: 1.13.770.19253 (1.13.770.19253)
Syntax

int PruneDocuments(
	int dataSourceId,
	string[] documentUris
)

Parameters

dataSourceId
Type: System Int32
documentUris
Type:  System String 

Return Value

Type: Int32
The number of documents removed by the operation.
See Also