Click or drag to resize
NamingHelperGetValidIndexName Method
Gets valid index name for Azure Search service.

Namespace: CMS.Search.Azure
Assembly: CMS.Search.Azure (in CMS.Search.Azure.dll) Version: 13.0.131
Syntax
C#
public static string GetValidIndexName(
	string indexName
)

Parameters

indexName
Type: SystemString
Index name to be renamed so it fulfills Azure Search naming conventions.

Return Value

Type: String
Returns string that has first character a letter or number and dots are replaced with dashes.
Exceptions
ExceptionCondition
ArgumentNullExceptionThrown when indexName is null.
Remarks
Azure Search has naming rules (https://docs.microsoft.com/en-us/rest/api/searchservice/naming-rules) which index names must follow.
See Also