Finds an index from its name, and makes it the current index.
You must use this function before accessing the index properties.