NamingHelperGetValidIndexName Method |
Gets valid index name for Azure Search service.
Namespace: CMS.Search.AzureAssembly: CMS.Search.Azure (in CMS.Search.Azure.dll) Version: 12.0.0
Syntax 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:
StringReturns string that has first character a letter or number and dots are replaced with dashes.
Exceptions Remarks
Azure Search has naming rules (https://docs.microsoft.com/en-us/rest/api/searchservice/naming-rules) which index names must follow.
See Also