Secondary indexes can be created on PartitionKey or ClusteringKey fields

SecondaryIndexAttribute was considered only if the field was not PartitionKey or ClusteringKey. Secondary indexes can be created on parts of a primary key.