I'm having trouble adding nested fields to a text index in MongoDB.
The code below adds string fields at the top level to the text index correctly. The two nested fields "contentright" and "contentfooterhead" that I am trying to add are added but do not index correctly.

var keys = {"name", "subject", "contentright", "contentfooterhead"};
var indexKeys = new IndexKeysBuilder();
indexKeys.Text(keys);
var options = new IndexOptionsBuilder();
options.SetName("testIndex");
options.SetBackground(true);
collection.CreateIndex(indexKeys, options);
This is what my text index looks like after the code is run:

If I run
indexKeys.TextAll();
which is equivalent to an index of
"$**": "text"
all the fields are indexed fine, but I don't want to add them all.