Built initializer for IndexSearch class, updated model name storage so it's always one constant level, rolled hash assignment back to be compatible with old versions of Ruby