Keyoti SearchUnit API Docs
RemoveContent Method (content, checkIfContentCategoryIsUsed)
API DocumentationKeyoti.SearchEngine.IndexDocumentIndexRemoveContent(String, Boolean)
Keyoti SearchUnit v6
Removes a content type from the index if the type is unused, otherwise throws an exception.
Declaration Syntax
C#Visual Basic
public virtual void RemoveContent(
	string content,
	bool checkIfContentCategoryIsUsed
)
Public Overridable Sub RemoveContent ( 
	content As String,
	checkIfContentCategoryIsUsed As Boolean
)
Parameters
content (String)
The content name
checkIfContentCategoryIsUsed (Boolean)
Whether to check (and warn with an InvalidOperationException) if the content category is used.
Remarks
Throws an InvalidOperationException if the category is currently assigned to a document and checkIfContentCategoryIsUsed==true.

Assembly: Keyoti4.SearchEngine.Core (Module: Keyoti4.SearchEngine.Core.dll) Version: 2022.8.22.610