NamingHelperGetValidDocumentKey Method |
Namespace: CMS.Search.Azure
public static string GetValidDocumentKey( string documentKey )
Exception | Condition |
---|---|
ArgumentNullException | Thrown when documentKey is null. |
Azure Search has naming rules (https://docs.microsoft.com/en-us/rest/api/searchservice/naming-rules) which document keys must follow.
Since the system uses semicolon (';') as a delimiter for compound identifiers, the default implementation replaces all semicolons by dashes ('-').