code: function _hasIndex(_this, model, key) {
  
      // Primary key always hasIndex
      if(key === 'id') {
          return true;
      }
  
      var modelDef = _this._models[model];
      var retval = (_.isObject(modelDef.properties[key]) && modelDef.properties[key].index) || (_.isObject(modelDef.settings[key]) && modelDef.settings[key].index);
      return retval;
  }
docs: need to rewrite the function as it does not take into account a different name for the index