RUBY-596 Find an index by name or spec