Hi @Clayton_Taylor ,
Welcome to the MongoDB Community forums! Are you trying to index all the attributes with Attributes.Keys or is there an element named Keys? Are you seeing an exception now when you do that? If so then the suspicion is that the LINQ2 provider was translating that to an index field of { "Attributes.Keys" : 1 } which is legal but it wouldn’t do what you expected and index only the 1st field. The LINQ3 provider catches this and throws an exception.
One alternative you can try is to use wildcard indexes. This can be done in the C# Driver as builder.Wildcard(x => x.Attributes). Hope that helps.
Thanks,
Rishit.