Yeah, it would be best if you avoided inspecting inside the mongo modulestore configuration. One option would be to provide the configuration directly to the mongo indexer. The other would be to write the indexing adaptor against the modulestore api (such as it is). The advantage to doing that is that you could actually index xml courses as well as mongo backed ones.