Keyoti SearchUnit API Docs
RemoveLocation Method (locationName, checkIfLocationCategoryIsUsed)
API DocumentationKeyoti.SearchEngine.IndexDocumentIndexRemoveLocation(String, Boolean)
Keyoti SearchUnit v6
Removes a location from the index if the location is unused, otherwise throws an exception.
Declaration Syntax
C#Visual Basic
public virtual void RemoveLocation(
	string locationName,
	bool checkIfLocationCategoryIsUsed
)
Public Overridable Sub RemoveLocation ( 
	locationName As String,
	checkIfLocationCategoryIsUsed As Boolean
)
Parameters
locationName (String)
checkIfLocationCategoryIsUsed (Boolean)
Remarks
Throws an InvalidOperationException if the location is currently assigned to a document.

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