make sure to only search for indexes in base classes inheriting from TopLevelDocumentMetaclass