IDocumentWebService UpdateDataSourcePathSegmentTree Method Ankiro Enterprise Suite Reference Documentation
Updates a subtree of the data source path tree recursively. If the subtree does not exist, but the parent exists, the subtree is added to the tree of the parent segment. If the parent does not exist, an exception will be thrown. Existing path segments that are not included in the updated path tree are removed, including any path segment rules that were associated with them. The method does not update rules that are passed to the method. However, rules that exists on path segments that are not removed, are not affected by the operation.

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

void UpdateDataSourcePathSegmentTree(
	int dataSourceId,
	DataSourcePathSegmentData segment,
	bool deleteOrphanedDocuments,
	bool updateIncludeState
)

Parameters

dataSourceId
Type: System Int32
The id of the data source.
segment
Type: Ankiro.SearchServer.Data DataSourcePathSegmentData
The new or updated subtree.
deleteOrphanedDocuments
Type: System Boolean
If true, any documents in the data source that belongs to a deleted path segment is also deleted from the data source and from any index containing documents from the data source. The method does not commit this change. Rather, Commit() or CommitFullUpdate() should be invoked subsequently to complete the document deletion.
updateIncludeState
Type: System Boolean

Return Value

Type:
The updated data source tree.
See Also