I have to Migrate a sharded MongoDB cluster to Cosmos DB API for MongoDB. Now the source collection is hash sharded and supporting hash index on a particular field.
I read from Microsoft documents that
"Azure Cosmos DB uses hash-based partitioning to spread logical partitions across physical partitions. Azure Cosmos DB hashes the partition key value of an item. The hashed result determines the physical partition. Then, Azure Cosmos DB allocates the key space of partition key hashes evenly across the physical partitions."
I am really confused now that it states Cosmos DB uses hash-based partitioning but doesn't support a hash index on same field.
So when migrating from MongoDB, Can I provide the same as shard key and just ignore creating an index? Would that serve the purpose. Any suggestions on this will be helpful.