IDocumentWebService PruneDocumentsByPath Method Ankiro Enterprise Suite Reference Documentation
Removes documents from the data source for a given path segment that are not included in the set of document uris specified by 'documentUris'. Use this method when updating a data source containing path segments, where it is desired to use information about pre-existing data source documents to remove documents from the path location of the data source that no longer exists in the remote repository. The following operation is carried out by the method: 1) Determine which documents are currently registered as belonging to the specified path segment (non-recursively). 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 PruneDocumentsByPath 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 PruneDocumentsByPath(
	int dataSourceId,
	string pathSegmentForeignId,
	string[] documentUris
)

Parameters

dataSourceId
Type: System Int32
pathSegmentForeignId
Type: System String
documentUris
Type:  System String 

Return Value

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