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#C#Visual BasicVisual BasicVisual C++Visual C++F#F#
public virtual void RemoveContent(
	string content,
	bool checkIfContentCategoryIsUsed
)
public virtual void RemoveContent(
	string content,
	bool checkIfContentCategoryIsUsed
)
Public Overridable Sub RemoveContent ( 
	content As String,
	checkIfContentCategoryIsUsed As Boolean
)
Public Overridable Sub RemoveContent ( 
	content As String,
	checkIfContentCategoryIsUsed As Boolean
)
public:
virtual void RemoveContent(
	String^ content, 
	bool checkIfContentCategoryIsUsed
)
public:
virtual void RemoveContent(
	String^ content, 
	bool checkIfContentCategoryIsUsed
)
abstract RemoveContent : 
        content : string * 
        checkIfContentCategoryIsUsed : bool -> unit 
override RemoveContent : 
        content : string * 
        checkIfContentCategoryIsUsed : bool -> unit 
abstract RemoveContent : 
        content : string * 
        checkIfContentCategoryIsUsed : bool -> unit 
override RemoveContent : 
        content : string * 
        checkIfContentCategoryIsUsed : bool -> unit 
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: 2015.6.15.120