There is model / ODM code referencing indexes, but it's likely to be somewhat different from what's actually deployed.  There's an ODM-supplied rake task which is supposed to sync deployed indexes to code, but it does not work (haven't investigated deeply).

I would advocate for a separate script to install / manage indexes rather than using the ODM, but in any event, it feels beyond the scope of this change.