Proper index type determination